Well , not sure about what the Bndw recovering ratio is
But you could call several times to the bdw calculation last post :
https://steemit.com/delegation/@elautomatico/2018-02-steem-power-delegation-toolbox
and make tests
If need any help just let me know