I am writing code to determine the status of a financial
account. I need to know how to determine the status
ex. 'Late' or 'Current'. The Bill has a starting date and
must be paid in 'X days' intervals. (5 day, 30 day, etc.)

1) If the balance is not paid, the status should be 'Late',
and the current balance should be added to the next
payment amount to give a new balance.

2) If the balance is paid, the status should show
'Current' until the payment is missed.

3) If the last payment has been reach, any 'Late'
payments after that should not be added. The max
amount due has been reached.

If anyone knows how to do this... Thanx