C# Project Review – Mortgage and Savings Calculations
Several years ago, during my short time as a programming instructor, I came up with an assignment for the students where I asked them to create a financial calculator that would calculate mortgage statistics and savings accumulated with compound interest. Of course, I designed my own version and posted it to Github.
While looking over my Github projects this past week, I noticed that the calculator had never really been finished and needed some polishing so, while I dreaded taking on a couple of the calculations, I decided to finally take care of it. The finished version is now available and I even put together a short YouTube video to show it in action.
The loan calculator portion of the program allows the down payment to be subtracted from an original property price by both percentage and amount. The loan term is expressed in months to allow the most flexibility. Once all the figures are in, the form dynamically updates the loan results whenever one of the fields is changed.
The compound interest calculator is pretty straightforward, enabling estimates of compound interest at a specific interest rate over years, with or without additional deposits. The interest can be compounded annually, quarterly, or monthly.
One of the nice things about this project is that it demonstrates the translation of a couple of complex formulas into code. It’s also a demonstration of object-oriented programming in C# with a couple of classes for encapsulating all the mortgage and savings functions.
Big thanks to TheCalculatorSite.com for supplying the formulas needed!
Again, you can download the complete code on Github and, if you find the video helpful, please remember to click Subscribe for notifications of upcoming videos.
Sign up for our newsletter to receive updates about new projects, including the new book "Self-Guided SQL"!
We respect your privacy and will never share your information with third-parties. See our privacy policy for more information.

