Slightly more succinct.
Don't blow up if the loan's amount is not set.
Don't blow up if the loan's repayment_duration is not set.
Slightly reduce complexity.
Merge pull request #238 from alphagov/fix-nil-divide-by-bug

Fix a couple of nil bugs