Can you help me

what i am trying to do is make a calculator for a mortgage company using a form. What i need is the basics on how to make it work. Basically i need a code that says take the input from this textbox this text bos and this text box and do this math with it. If anyone can help me that would be great or atleast get me started.