Script Categories













Calculators >>> Income.

Estimates your weekly, bi-weekly, monthly, and yearly income. Very useful when job hunting when offered an income per hour, month, or year. The tax bracket numbers are adjustable with each year's income tax levels.

  1. Choose Hourly or Yearly format.
  2. Fill out the form, skipping N/A fields.
  3. Press the TAB key when finished.
Hourly PayYearly Pay
Hours per Week
Hourly Wages
OverTime Wages Per Hour
OverTime PAY Total
Total Gross per year
Total Net income
Total Monthly Net
Total bi-weekly Net
Total Weekly Net
Read the fine print

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
function GrossTextTotal() {
var Calc = document.NetIncome;
if (Calc.InputRad[0].checked & Calc.HoursPerWeekText.value == "") {
Calc.GrossText.value = (parseFloat(Calc.HourlyText.value) * 2080) + " $";
}
else {
if (Calc.InputRad[0].checked & Calc.HoursPerWeekText.value < "41") {
Calc.GrossText.value = (parseFloat(Calc.HourlyText.value) * parseFloat(Calc.HoursPerWeekText.value) * 52) + " $";
}
else
if (Calc.InputRad[0].checked & Calc.HoursPerWeekText.value > "40") {
Calc.OTHoursText.value = Calc.HoursPerWeekText.value - 40;
Calc.OTWagesText.value = Calc.HourlyText.value * 2 / 4 * 3;
Calc.OTPayText.value = Calc.OTWagesText.value * Calc.OTHoursText.value + " $";
Calc.GrossText.value = (parseFloat(Calc.HourlyText.value * 40) + parseFloat(Calc.OTPayText.value)) * 52 + " $";
}
}
}
function TotalGrossPerYear() {
var Calc = document.NetIncome;
if (!(Calc.GrossText.value < 49800)) {
Bracket2();
}
else {
if (!(Calc.GrossText.value > 49800)) {
Bracket1();
}
}
}
function Bracket1() {
var Calc = document.NetIncome;
if (Calc.InputRad[0].checked) {
// This number is modified every year and per tax bracket
Calc.GH1Text.value = (parseFloat(Calc.GrossText.value) - 3090) + " $";

// This number is modified every year and per tax bracket
Calc.GH2Text.value = (parseFloat(Calc.GrossText.value) - 20600) + " $";

// This number is modified every year and per tax bracket
Calc.GH3Text.value = (parseFloat(Calc.GH2Text.value) * 28 / 100) + " $";

Calc.NetText.value = (parseFloat(Calc.GH1Text.value) - parseFloat(Calc.GH3Text.value)) + " $";
Calc.MonthlyText.value = Math.round(parseFloat(Calc.NetText.value) / 12.991) + " $";
Calc.Bi_WeeklyText.value = (parseFloat(Calc.MonthlyText.value) / 2) + " $";
Calc.WeeklyText.value = (parseFloat(Calc.Bi_WeeklyText.value) / 2) + " $";
}
else {
if (Calc.InputRad[1].checked) {
Calc.GH1Text.value = (parseFloat(Calc.GrossText.value) - 3090) + " $";
Calc.GH2Text.value = (parseFloat(Calc.GrossText.value) - 20600) + " $";
Calc.GH3Text.value = (parseFloat(Calc.GH2Text.value) * 28 / 100) + " $";
Calc.NetText.value = (parseFloat(Calc.GH1Text.value) - parseFloat(Calc.GH3Text.value)) + " $";
Calc.MonthlyText.value = Math.round(parseFloat(Calc.NetText.value) / 12.991) + " $";
Calc.Bi_WeeklyText.value = (parseFloat(Calc.MonthlyText.value) / 2) + " $";
Calc.WeeklyText.value = (parseFloat(Calc.Bi_WeeklyText.value) / 2) + " $";
Calc.HourlyText.value = "N/A";
}
}
}
function Bracket2() {
var Calc = document.NetIncome;
if (Calc.InputRad[0].checked) {
Calc.GH1Text.value = (parseFloat(Calc.GrossText.value) - 11266) + " $";
Calc.GH2Text.value = (parseFloat(Calc.GrossText.value) - 49800) + " $";
Calc.GH3Text.value = (parseFloat(Calc.GH2Text.value) * 31 / 100) + " $";
Calc.NetText.value = (parseFloat(Calc.GH1Text.value) - parseFloat(Calc.GH3Text.value)) + " $";
Calc.MonthlyText.value = Math.round(parseFloat(Calc.NetText.value) / 12.991) + " $";
Calc.Bi_WeeklyText.value = (parseFloat(Calc.MonthlyText.value) / 2) + " $";
Calc.WeeklyText.value = (parseFloat(Calc.Bi_WeeklyText.value) / 2) + " $";
}
else {
if (Calc.InputRad[1].checked) {
Calc.GH1Text.value = (parseFloat(Calc.GrossText.value) - 11266) + " $";
Calc.GH2Text.value = (parseFloat(Calc.GrossText.value) - 49800) + " $";
Calc.GH3Text.value = (parseFloat(Calc.GH2Text.value) * 31 / 100) + " $";
Calc.NetText.value = (parseFloat(Calc.GH1Text.value) - parseFloat(Calc.GH3Text.value)) + " $";
Calc.MonthlyText.value = Math.round(parseFloat(Calc.NetText.value) / 12.991) + " $";
Calc.Bi_WeeklyText.value = (parseFloat(Calc.MonthlyText.value) / 2) + " $";
Calc.WeeklyText.value = (parseFloat(Calc.Bi_WeeklyText.value) / 2) + " $";
Calc.HourlyText.value = "N/A";
}
}
}
function NAHourlyText() {
var Calc = document.NetIncome;
Calc.HourlyText.value = "N/A";
Calc.HoursPerWeekText.value = "N/A";
Calc.GrossText.value = "";
}
function NAGrossText() {
var Calc = document.NetIncome;
Calc.GrossText.value = "N/A";
Calc.HoursPerWeekText.value = "";
Calc.HourlyText.value = "";
}
// End -->
</script>
<form method=post name=NetIncome>
<input type=hidden name=OTHoursText size=10>
<input type=hidden name=GH1Text size=10>
<input type=hidden name=GH2Text size=10>
<input type=hidden name=GH3Text size=10>
<table border=5>
<th align=left>
<ol>
<li>Choose Hourly or Yearly format.
<li>Fill out the form, skipping N/A fields.
<li>Press the TAB key when finished.
</ol>
</th>
<tr>
<td><font size=5><input type=radio checked name=InputRad value=PerHour onClick="NAGrossText()"><u>Hourly Pay</u><input type=radio name=InputRad value=PerYear onClick="NAHourlyText()"><u>Yearly Pay</u></font></td>
</tr>
<tr><td><input type=text name=HoursPerWeekText size=10>Hours per Week</td></tr>
<tr>
<td><input type=text name=HourlyText size=10 onChange="GrossTextTotal();TotalGrossPerYear()">Hourly Wages</td>
</tr>
<tr><td><input type=text name=OTWagesText size=10 value="-------">OverTime Wages Per Hour</td></tr>
<tr><td><input type=text name=OTPayText size=10 value="-------">OverTime PAY Total</td></tr>
<tr><td><input type=text name=GrossText size=10 onChange="TotalGrossPerYear()" value="N/A">Total Gross per year
</td></tr>
<tr><td><input type=text name=NetText size=10 value="-------">Total Net income</td></tr>
<tr><td><input type=text name=MonthlyText size=10 value="-------">Total Monthly Net</font></td></tr>
<tr><td><input type=text name=Bi_WeeklyText size=10 value="-------">Total bi-weekly Net</td></tr>
<tr><td><input type=text name=WeeklyText size=10 value="-------">Total Weekly Net</td></tr>
<tr><td align=center><input type=reset Value="Reset Form"></td></tr>
</table>
</form>
Read the <a href="javascript:void(0);" onClick="alert('This assumes you are working 40 hours a week (2080 a year)\nunless you enter your own hours. This script is compliant\nwith the 1997 Income-tax Standard. However, it may vary\nslightly. Please do not use these results as your quote.');">fine print</a>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).

Amazing rolling mill from ruscana high quality


©