Simple Mortgage Calculator in c++