I'm new to the VB5 world and I trying to get Vb to do the
following math calculations:

I have 4 txtboxes: monthly payment (user input) A
monthly payment / 2 B
Shortage amount (user input) C
commandbox Compute
Payment amount (end of calc)
commandbox Exit

What I want to do is after a user inputs a monthly amount and a Shortage amount I want to compute the following:
monthly /2 = B, then if C > B then (C-B)+5, if C < B then
(C+B)+5

Anyone that can help me..I want to thank you in advance.
Thanks!