added logic to handle paying month end balance. Waiting on database implementation to be complete