Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > Math Resources > Calculator Discussion
Reply
 
Thread Tools Display Modes
  #1  
Old June 2nd, 2009, 03:26 AM
Newbie
 
Join Date: Jun 2009
Posts: 1
Country:
Thanks: 0
Thanked 0 Times in 0 Posts
lawley06 is on a distinguished road
Default Building a web based pension calculator

Hi there

This is my first posting, so apologies if this is not the correct board or not a question members would respond to normally.

We are currently trying to put together a web based pension calculator and am unsure about how to go about trying to put the equation together for our programmers to begin building it.

The calculator itself is meant as an estimate only to give people an idea of how much they may need/how much of a shortfall they may have.

The calculator will take into consideration:

-current age
- age of retirement
-current salary
-existing fund
-target income in retirement per year/per annum
-the ability to escalate contributions by the rate of inflation assuming that this is 2.5%

- the ability to change the percentage of tax free cash
- personal contributions, per month
-the ability to delay starting your pension by a number of years



with the hope to get an example of

- total pension fund
-tax free amount
-projected income and percentage of target income
-preojected income and percentage of target income if you delay by x years.

Any help would be very much appreciated, even a point in the right direction!

Many Thanks in advance
Reply With Quote
Advertisement
 
  #2  
Old June 15th, 2009, 07:47 PM
apcalculus's Avatar
Member
 
Join Date: Apr 2009
Location: Boston
Posts: 218
Country:
Thanks: 1
Thanked 64 Times in 64 Posts
apcalculus will become famous soon enough
Default

Quote:
Originally Posted by lawley06 View Post
Hi there

This is my first posting, so apologies if this is not the correct board or not a question members would respond to normally.

We are currently trying to put together a web based pension calculator and am unsure about how to go about trying to put the equation together for our programmers to begin building it.

The calculator itself is meant as an estimate only to give people an idea of how much they may need/how much of a shortfall they may have.

The calculator will take into consideration:

-current age
- age of retirement
-current salary
-existing fund
-target income in retirement per year/per annum
-the ability to escalate contributions by the rate of inflation assuming that this is 2.5%

- the ability to change the percentage of tax free cash
- personal contributions, per month
-the ability to delay starting your pension by a number of years



with the hope to get an example of

- total pension fund
-tax free amount
-projected income and percentage of target income
-preojected income and percentage of target income if you delay by x years.

Any help would be very much appreciated, even a point in the right direction!

Many Thanks in advance
The first thing you need to decide is the programming language. There are quite a few options out there: Java, PHP, Perl, JavaScript ?? I am not an an expert in any of these but I am sure you can get a lot of help in a computer programming forum, like the coding forum.

Good luck with the project!
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Placement Calculus & Statistics::
Reply With Quote
  #3  
Old September 30th, 2009, 12:36 AM
Newbie
 
Join Date: Sep 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
crypt0s is on a distinguished road
Default

in perl:

the following file is named math.cgi


#!/usr/bin/perl -wT
use CGI qw(:standard);

param(currentsalary) = $currentsalary;
param(currentcash) = $current_cash;
param(age) = $age;
param(retirement) = $retirement_age;
param(inflation) = $inflation;

#make inflation a decimal
$inflation = ($inflation / 100);

#starting total is whatever we were told
$total += $current_cash;

#loop placeholder because its easier
$ageloop = $age;

#loop because math is hard
while ($ageloop /= $retirement_age){

$ageloop++;

#add this years salary
$total = $total + $currentsalary;

#INFLATION STRIKES! (the good kind)
$total = $total + ($total * $inflation);
}
print "Content-type: text/html\n\n";
print "Your total earnings: " + $total + "<br>";
print "over " + ($retirement_age - $age) + " years" + "<br>";
print "with " + ($inflation / 100) + "inflation rate." + "<br>";


the following file is math.html

<html><head><title>Test Form</title></head>
<body>

<form action="math.cgi" method="GET">
Enter some text here:
Current Salary: <input type="text" name="currentsalary" size="10"><br>
Current Funds: <input type="text" name="currentcash" size="10"><br>
Age: <input type="text" name="age" size="10"><br>
Age at Which you will retire: <input type="text" name="retirement" size="10"><br>
Inflation rate (%): <input type="text" name="inflation" size="10"><br>

<input type="submit"><p>
</form>

</body></html>

that might work. i didnt test it.

i cant determine the tax-free amount without tax information
what do you mean by delay of years?
and what are the pension requirements.

also, for this to work you have to have a web-server...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 07:35 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2009 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.