Fixed a small bug in the Next Due formula - thanks to YouTube commenter Aamir Jawaid for pointing this out.