I would suggest using get_config() API function instead that will give you
`"STEEMIT_VOTE_REGENERATION_SECONDS": 432000,
This is a number of seconds (five days currently) required for your voting power to go from 0 to 10000. Your logic is equivalent, but in case this parameter ever changes, you won't need to rewrite your code.
Thanks for the input, I wish they would just fix this "up stream" so the API returned the correct VP. I will 100% endorse and use this constant since it will update along with new changes that as you point out are possible in the future (though are not currently as you also pointed out)! This is a great way to take this function and make it work until they fix the return to be the real VP vs the VP at the last voting time!