# VB Script Help

**URL:** <https://forum.kirupa.com/t/vb-script-help/324665>\
**Category:** programming\
**Created:** [September 2, 2011, 12:50am UTC](https://forum.kirupa.com/t/vb-script-help/324665 "2011-09-02T00:50:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ksuguy25](https://avatars.discourse-cdn.com/v4/letter/k/fbc32d/32.png) [@Ksuguy25](https://forum.kirupa.com/u/Ksuguy25)\
**Post date:** [September 2, 2011, 12:50am UTC](https://forum.kirupa.com/t/vb-script-help/324665/1 "2011-09-02T00:50:04Z")

</div>

Hey guys, I’m new to VBScript programing and I need a little help. I’m writing a mortgage calculator which needs the following.

two input boxes 1. how much does the house cost 2. how much will you be paying each month

output box with the following message (I.G)

That will take at least “154 months” or “13” years to pay off at zero interest. So far here is what I have so far

```auto

dim a
dim b
dim y
y = a / 12
a = inputbox("How much does the house cost")
b = inputbox("How much will you be paying each month?")
next
msgbox("That will take at least " & y & ":" "or" & b "years to pay off at zero interest")

```

I can’t get this thing to work. please help! Thanks in advanced.
