Fixed bugs in loan calculator example