Moved the payment schedule calculation to a change even to fix angular iteration error