Supply & Borrow Rate Computation

Hi there,

Does anyone know how does Venus calculate the borrow/ supply rate?
I don’t mean the compounded APY borrow rate but rather the exact formula to calculate the Borrow/ Supply Rate

Venus docs only highlights the compounding of the rate to get an APY, but i’m curious about obtaining the exact math behind supplyRatePerBlock and borrowRatePerBlock

Any advice would be helpful

Thanks!