Made function for summing up next months payment and putting it into the field expected_payment.