binance API Volume % change for time frames

hello guys i am trying to have a binance API Volume % change for time frames i am using this fromula but is not giving me what i need please help me out

please share more details of the questions, like what do you expect and what did you get?

thanks