The action attribute of the form tells the browser where to go when the form is submitted; typically a results page. You don't want to point it at the js file.
When you include the js via a script tag, the contents of the file is loaded and executed and any functions you create will be available to be run by other code.
What you'll need to do is write a function that gets triggered when the form is submitted. This can be accomplished via the onSubmit attribute of the form tag... There are better ways, but that will do.
Here's a quick example that you can play with:
http://www.w3schools.com/js/js_form_validation.asp (click Try it yourself)
If you can provide some sample code and a quick description of what you're trying to accomplish, I can provide more details.
EDIT:
Ok, not sure if I did the calculations correctly. Please double check. But here's a quick example:
http://jsfiddle.net/cDpLc/
You'd save the html into retirement.html and the javascript code into retirement.js. The html needs to have the and tags added with a
Let me know if you have any questions.