Dear community,
I would like to ask how do we build the formula that able to give us the output as below : The amount will deduct the balance for each until it fully utilise it. The remaining unutilised month will be zero.


I have also attached the working file for your reference.