Yes you can. It’s basic math. Supply schedule is fixed in code. You just count backwards from the current block.