This can be set with formulas if you understand how to do it. But, for an easier approach, I suggest downloading a template from Microsoft. They have many free templates for a wide variety of purposes. Here's a loan calculator template that looks like it will serve your purpose:
Loan calculatorEdit: Ah, I see dl65 beat me to it. Well, not you have two sources from which to choose.