Suppose we have a liquid nitrogen tank hooked up to a freezer. The freezer is replenished with 37.2 L of LN2 every 5 days from the tank. Additionally, the tank loses LN2 at a rate of 1.5% per day. The tank begins with 180.0 L of LN2.
How would I go about solving for the volume in the tank as a function of time?
To me, this looks like a continuous compound interest problem, but I can't seem to figure out how to factor in the volume change from the regular intervals.
I attempted to adapt the answer given in Continually Compounded Interest + Addition to Principal, changing rate and deposit to be negative. It didn't seem to line up correctly though.
I know this can be done simply recursively by subtracting from the previous value, but I would really like to figure out how to make this a continuous function of time.