basic mortgage calculator in ruby