By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
463,052 Members | 444 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 463,052 IT Pros & Developers. It's quick & easy.

Simple program for payroll program in javascript

P: 1
Add three (3) Java Methods. Name them Employee, FullTimeEmployee, and
PartTimeEmployee.
Write a simple payroll program that will display employee’s information. Refer to the Sample
Output below. This should be the sequence of the program upon execution:
a. Ask the user to input the name of the employee. Use the employee method here.
b. Prompt the user to select between full time and part time by pressing either F (full time) or
P (part time).
c. If F is pressed, ask the user to type his/her monthly salary. Then, display his/her name and
monthly salary.
If P is pressed, ask the user to type his/her rate (pay) per hour and the number of hours s/he
worked for the entire month separated by a space. Then, display his/her name and wage.
d. Use your own variable declaration and make use of local and instance variable. Also refer
to the proper way of declaring methods and make sure to utilize all created methods into
their corresponding function
2 Weeks Ago #1
Share this Question
Share on Google+
2 Replies

dev7060
Expert 100+
P: 313
What have you done so far?
2 Weeks Ago #2

SwissProgrammer
P: 98
Maybe you might not know how to do an internet search.
Maybe you might not know how to see the source of a web page.
I do not know. Here is a similar application that you can look at. It does not do what you specifically asked for. But you did not supply any code to show that you tried and you did not explain how you tried and ended up with no code example (that would have been ok also).

Here is a place to start.

Try to adjust the code for youself. If you have problems then submit your problems with questions. OK ?


I looked on duckduckgo.com and searched for
+"javascript" +"payroll"
Is this what you are looking for?


Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <title>JavaScript payroll calculator</title>
  4.  
  5. <meta name="description" 
  6. content="Simple JavaScript payroll calculator for state and federal taxes">
  7. <meta name="keywords" content="JavaScript, payroll, paycheck, social security, medicare, unemployment, FUTA, withholding, rates, limits, web, forms, applications, QuickBooks, Pro, 2009, Macintosh, Apple, OS X, Leopard, Snow Leopard, AppleScript, Apple Script, scripting, scriptable, Mail, email, export, how, to, instructions, tutorial, introduction, guide, resource, using, essential,handy, subroutines">
  8. <meta name="MSSmartTagsPreventParsing" content="true">
  9. <meta name="robots" content="noarchive">
  10. <link rel="stylesheet" href="styles.css">
  11. <meta name="viewport" content="width=device-width, initial-scale=1">
  12.  
  13. <script language="JavaScript">
  14. <!--
  15.  
  16.     // You can store default values for the employee input table here.
  17.     // The order of this list should be the same as the order of the employee name list in the Input table.
  18.     // Each line holds an employee's Gross Pay, Federal Withholding, State Withholding in order.  Do not use $ or ,'s.
  19.     // If you have more employees, clone the last line and increment the number, e.g. employeeTable[3] = new Array ....
  20.  
  21.     var employeeTable = new Array();
  22.  
  23.     employeeTable[0] = new Array (5000,375,120);
  24.     employeeTable[1] = new Array (3000,200,87.54);
  25.     employeeTable[2] = new Array (1800,75.00,38.42);
  26.  
  27.     // It is recommended that you not try to edit the remainder of this JavaScript...
  28.  
  29. function calcValues() {
  30.  
  31.     // Notice how we use a function to strip out non-numeric characters rather then prohibit their entry.
  32.     // We really really really hate web sites that tell you not to enter spaces, dashes, commas etc for
  33.     // no reason other than programmer laziness or incompetence.
  34.  
  35.     // Get the YTD Earnings, Gross pay this period, and SS Max Base
  36.     var grossPayYtd = parseFloat(stripAlphaChars(document.inputValues.ytdGross.value));
  37.     var grossPayThisPeriod = parseFloat(stripAlphaChars(document.inputValues.currentGross.value));
  38.     var ssMaxBase = parseFloat(stripAlphaChars(document.taxRates.ssMaxBase.value));
  39.  
  40.  
  41.     // Social Security
  42.  
  43.         // read in rates
  44.             var ssCompanyRate = parseFloat(stripAlphaChars(document.taxRates.ssCompanyRate.value));
  45.             var ssEmployeeRate = parseFloat(stripAlphaChars(document.taxRates.ssEmployeeRate.value));
  46.  
  47.         // Look at the SS Max Base and decide what amount of this is taxable
  48.             var ssTaxableAmount = grossPayThisPeriod;
  49.             var newYtdGross =  grossPayYtd + grossPayThisPeriod;
  50.             if (newYtdGross >= ssMaxBase) {ssTaxableAmount = Math.max((ssMaxBase - grossPayYtd), 0);}
  51.  
  52.         // Calculate and insert company and employer SS expense
  53.             var ssEmployeeAmount = ssTaxableAmount * ssEmployeeRate/100;
  54.             var ssCompanyAmount = ssTaxableAmount * ssCompanyRate/100;
  55.             document.getElementById('ssEmployeeAmount').innerText = formatCurrency(ssEmployeeAmount);
  56.             document.getElementById('ssCompanyAmount').innerText = formatCurrency(ssCompanyAmount);
  57.  
  58.  
  59.     // Medicare
  60.  
  61.         // Calculate and insert Company Medicare expense
  62.             var medicareCompanyRate = parseFloat(stripAlphaChars(document.taxRates.medicareCompanyRate.value));
  63.             var medicareCompanyAmount = grossPayThisPeriod * medicareCompanyRate/100;
  64.             document.getElementById('medicareCompanyAmount').innerText = formatCurrency(medicareCompanyAmount);
  65.  
  66.         // Calculate and insert employee Medicare expense
  67.             var medicareEmployeeRate = parseFloat(stripAlphaChars(document.taxRates.medicareEmployeeRate.value));
  68.             var medicareEmployeeAmount = grossPayThisPeriod * medicareEmployeeRate/100;
  69.             document.getElementById('medicareEmployeeAmount').innerText = formatCurrency(medicareEmployeeAmount);
  70.  
  71.     // Federal Unemployment
  72.  
  73.             var futaRate = parseFloat(stripAlphaChars(document.unemployment.futaRate.value));
  74.             var futaThreshold = parseFloat(stripAlphaChars(document.unemployment.futaThreshold.value));
  75.  
  76.         // Find out if the amount exceeds the FUTA threshold and insert result
  77.             var futaTaxableAmount = grossPayThisPeriod;
  78.             if (newYtdGross >= futaThreshold) {futaTaxableAmount = Math.max((futaThreshold - grossPayYtd), 0);}
  79.              var futaCompanyAmount = futaTaxableAmount * futaRate;
  80.              document.getElementById('futaCompanyAmount').innerText = formatCurrency(futaCompanyAmount);
  81.  
  82.  
  83.     // State Unemployment
  84.             var stateUnemployCompanyRate = parseFloat(stripAlphaChars(document.unemployment.stateFutaCompany.value));
  85.             var stateUnemployEmployeeRate = parseFloat(stripAlphaChars(document.unemployment.stateFutaEmployee.value));
  86.             var stateUnemployThreshold = parseFloat(stripAlphaChars(document.unemployment.stateUnemployThreshold.value));
  87.  
  88.         // Find out if this exceeds the State Unemployment threshold and insert result
  89.             var stateUnemployTaxableAmount = grossPayThisPeriod;
  90.             if (newYtdGross >= stateUnemployThreshold) {stateUnemployTaxableAmount = Math.max((stateUnemployThreshold - grossPayYtd), 0);}
  91.             var stateUnemployEmployeeAmount = stateUnemployTaxableAmount * stateUnemployEmployeeRate/100;
  92.             document.getElementById('stateUnemployEmployeeAmount').innerText = formatCurrency(stateUnemployEmployeeAmount);
  93.             var stateUnemployCompanyAmount = stateUnemployTaxableAmount * stateUnemployCompanyRate/100;
  94.             document.getElementById('stateUnemployCompanyAmount').innerText = formatCurrency(stateUnemployCompanyAmount);
  95.  
  96.  
  97.     // State and Federal Withholding
  98.             var stateWithheldAmount = parseFloat(stripAlphaChars(document.inputValues.stateWithholding.value));
  99.             var federalWithheldAmount = parseFloat(stripAlphaChars(document.inputValues.fedWitholding.value));
  100.             document.getElementById('stateWithheldAmount').innerText = formatCurrency(stateWithheldAmount);
  101.             document.getElementById('federalWithheldAmount').innerText = formatCurrency(federalWithheldAmount);
  102.  
  103.  
  104.     // Local 1 Withholding
  105.             var local1CompanyRate = parseFloat(stripAlphaChars(document.taxRates.local1CompanyRate.value));
  106.             var local1EmployeeRate = parseFloat(stripAlphaChars(document.taxRates.local1EmployeeRate.value));
  107.             var local1Threshold = parseFloat(stripAlphaChars(document.taxRates.local1MaxBase.value));
  108.  
  109.         // Find out if this exceeds the salary threshold and insert result
  110.             var local1TaxableAmount = grossPayThisPeriod;
  111.             if (newYtdGross >= local1Threshold) {local1TaxableAmount = Math.max((local1Threshold - grossPayYtd), 0);}
  112.             var local1EmployeeAmount = local1TaxableAmount * local1EmployeeRate/100;
  113.             document.getElementById('local1EmployeeAmount').innerText = formatCurrency(local1EmployeeAmount);
  114.             var local1CompanyAmount = local1TaxableAmount * local1CompanyRate/100;
  115.             document.getElementById('local1CompanyAmount').innerText = formatCurrency(local1CompanyAmount);
  116.  
  117.  
  118.     // Local 2 Withholding
  119.             var local2CompanyRate = parseFloat(stripAlphaChars(document.taxRates.local2CompanyRate.value));
  120.             var local2EmployeeRate = parseFloat(stripAlphaChars(document.taxRates.local2EmployeeRate.value));
  121.             var local2Threshold = parseFloat(stripAlphaChars(document.taxRates.local2MaxBase.value));
  122.  
  123.         // Find out if this exceeds the salary threshold and insert result
  124.             var local2TaxableAmount = grossPayThisPeriod;
  125.             if (newYtdGross >= local2Threshold) {local2TaxableAmount = Math.max((local2Threshold - grossPayYtd), 0);}
  126.                 var local2EmployeeAmount = local2TaxableAmount * local2EmployeeRate/100;
  127.             document.getElementById('local2EmployeeAmount').innerText = formatCurrency(local2EmployeeAmount);
  128.             var local2CompanyAmount = local2TaxableAmount * local2CompanyRate/100;
  129.             document.getElementById('local2CompanyAmount').innerText = formatCurrency(local2CompanyAmount);
  130.  
  131.  
  132.  
  133.     // Net paycheck - does not include Company items!
  134.             var netPaycheckAmount = grossPayThisPeriod - ssEmployeeAmount - medicareEmployeeAmount - stateUnemployEmployeeAmount - stateWithheldAmount - federalWithheldAmount - local1EmployeeAmount - local2EmployeeAmount;
  135.             document.getElementById('netPaycheckAmount').innerText = formatCurrency(netPaycheckAmount);
  136.  
  137.  
  138.     // Company total expense - does not include Employee items!
  139.             var companyTotalExpenses = ssCompanyAmount + medicareCompanyAmount + futaCompanyAmount + local1CompanyAmount + local2CompanyAmount;
  140.             document.getElementById('companyTotalExpenses').innerText = formatCurrency(companyTotalExpenses);
  141.  
  142.     return false;
  143. }
  144.  
  145.  
  146. function insertDefaults() {
  147.     // Use the arrays at the top of this script to enter default amounts for various employees
  148.     // This function will insert those when the Employee Name is changed
  149.  
  150.     var employeeNumber = document.getElementById('employeeName').selectedIndex;
  151.     document.getElementById('currentGross').value=employeeTable[employeeNumber][0];
  152.     document.getElementById('fedWitholding').value=employeeTable[employeeNumber][1];
  153.     document.getElementById('stateWithholding').value=employeeTable[employeeNumber][2];
  154.     return false;
  155.  
  156. }
  157.  
  158.  
  159. function stripAlphaChars(thisString) {
  160.  
  161.     // This little guy is here so we don't have to nag people about commas, $ or other non-numerals
  162.     // Don't you hate web sites that tell you not to enter credit card numbers with dashes or spaces???
  163.  
  164.     var stripMe = new String(thisString);
  165.     stripMe = stripMe.replace(/[^0-9\.]/g, '');
  166.     return stripMe; 
  167. }
  168.  
  169.  
  170. function formatCurrency(num) {
  171.  
  172.     // found all kinds of versions of this on the web, but it's not clear who to rightfully attribute it to.
  173.     num = num.toString();
  174.     if(isNaN(num))
  175.     num = "0";
  176.     sign = (num == (num = Math.abs(num)));
  177.     num = Math.floor(num*100+0.50000000001);
  178.     cents = num%100;
  179.     num = Math.floor(num/100).toString();
  180.     if(cents<10)
  181.     cents = "0" + cents;
  182.     for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
  183.     num = num.substring(0,num.length-(4*i+3))+','+
  184.     num.substring(num.length-(4*i+3));
  185.     return (((sign)?'':'-') + '$' + num + '.' + cents);
  186. }
  187.  
  188.  
  189. // -->
  190. </script>
  191.  
  192. </head>
  193.  
  194. <body bgcolor="#ffffff">
  195. <a name="top"> </a>
  196. <p align="center"><a href="http://www.safetyemporium.com/"><img src="pics/sebanner.gif" alt="Safety Emporium - Lab and Safety Supplies" width="468" height="60"></a></p>
  197.  
  198.  
  199. <h1 align="center">JavaScript Payroll Calculator</h1>
  200.  
  201.  
  202.  
  203. <a name="about"> </a>
  204. <h2>About this page</h2>
  205. <div class="bodyindent">
  206.  
  207. <p>This simple JavaScript-based calculator is designed for folks who want to do payroll themselves without having to fork over a fortune to a payroll services company.  It works well for employers with a small number of employees and can be used by itself or with  <a href="scriptexamples6.html">an AppleScript that we have written</a> to enter the results into your QuickBooks Mac 2009 file automatically.</p>
  208.  
  209. <p>Ideally, you will download this page and save a copy to your hard drive (use the Save As Source or other equivalent menu command from your web browser).  That will enable you to hard code the state and local tax rates by editing the file so you don't have to re-enter them each time.  But if you want to use it directly on our web site, you can.</p>
  210.  
  211. <p>To use this calculator, <b><u>double check that you are using the correct tax rates</u></b> in the <a href="#rates">Tax Rates Table</a> and then simply fill in the four pieces of data in the <a href="#payroll">Input Payroll Data Here table</a> and click Calculate.  Then run the AppleScript we referenced to create a new Paycheck in Quickbooks populated with the output data!</p>
  212. </div> <!-- End body indent-->
  213.  
  214.  
  215.  
  216.  
  217. <a name="payroll"> </a>
  218. <h2>Employee Payroll Calculation</h2>
  219. <div class="bodyindent">
  220.  
  221. <p>As discussed above, you should edit your local copy of this file.  Using a plain text or HTML editor, change the employee list to match those employee names used in your copy of QuickBooks. You can also change the default values for each employee at the beginning of the JavaScript section.</p>
  222.  
  223. <p>Enter your inputs on the left, and the stuff you need to write checks or import into QuickBooks 2009 Mac will magically appear on the right!  You should use the Federal and State withholding values from the employee's individual W-4's.</p>
  224.  
  225. <center>
  226. <table border="0" cellpadding="10">
  227. <tr valign="middle"><td width="40%">
  228.  
  229. <form name="inputValues" id="inputValues" action="" onSubmit="return calcValues();">
  230.  
  231. <table border="1" cellpadding="1" cellspacing="1">
  232. <tr align="center" bgcolor="eeffcc"><th colspan="2">Input Payroll Data Here</th></tr>
  233.  
  234. <tr align="center"><th>Employee Name</th><td><select name="employeeName" id="employeeName" onChange="insertDefaults()"><option selected>Cunningham, Mary</option><option>Malph, Ralph</option><option>Jones, Jimbo</option></select></td></tr>
  235.  
  236. <tr align="center"><th>YTD Gross pay (before this check)</th><td> $<input type="text" size="8,1" name="ytdGross" id="ytdGross" style="font-size: 14px;" value="0"></td></tr>
  237.  
  238. <tr align="center"><th>Gross for this pay period</th><td> $<input type="text" size="8,1" name="currentGross" id="currentGross" style="font-size: 14px;" value="5,000" ></td></tr>
  239.  
  240. <tr align="center"><th>Federal Withholding this period</th><td> $<input type="text" size="8,1" name="fedWitholding" id="fedWitholding" style="font-size: 14px;" value="375" ></td></tr>
  241.  
  242. <tr align="center"><th>State Withholding this period</th><td> $<input type="text" size="8,1" name="stateWithholding" id="stateWithholding" style="font-size: 14px;" value="120"></td></tr>
  243.  
  244. <tr align="center"><th colspan="2"><input type="submit" name="calculate" id="calculate" value="Calculate"></th></tr>
  245.  
  246. </table>
  247. </form>
  248.  
  249. <p align="center"><i><b>Tip</b>: You can hard-code default amounts for each employee. Check out the HTML code for details.</i></p>
  250.  
  251.  
  252. </td><td width="60%">
  253.  
  254.  
  255. <table border="1" cellpadding="4" cellspacing="1">
  256. <tr align="center" bgcolor="ccffee"><th colspan="3">Output values will appear here</th></tr>
  257.  
  258. <tr align="center" bgcolor="ccffee"><th></th><th>Employee</th><th>Company</th></tr>
  259.  
  260.  
  261. <tr align="center"><th>Social Security Witholding</th><td align="right"> <span name="ssEmployeeAmount" id="ssEmployeeAmount" style="font-size: 14px;">  (calculate)  </span></td><td align="right"> <span name="ssCompanyAmount" id="ssCompanyAmount" style="font-size: 14px;">  (calculate)  </span></td></tr>
  262.  
  263. <tr align="center"><th>Medicare Withholding</th><td align="right"> <span name="medicareEmployeeAmount" id="medicareEmployeeAmount" style="font-size: 14px;">  (calculate)  </span></td><td align="right"> <span name="medicareCompanyAmount" id="medicareCompanyAmount" style="font-size: 14px;">  (calculate)  </span></td></tr>
  264.  
  265. <tr align="center"><th>Federal Unemployment</th><td bgcolor="#999999"></td><td align="right"> <span name="futaCompanyAmount" id="futaCompanyAmount" style="font-size: 14px;">  (calculate)  </span></td></tr>
  266.  
  267. <tr align="center"><th>State Unemployment Withholding</th><td align="right"> <span name="stateUnemployEmployeeAmount" id="stateUnemployEmployeeAmount" style="font-size: 14px;">  (calculate)  </span></td><td align="right"> <span name="stateUnemployCompanyAmount" id="stateUnemployCompanyAmount" style="font-size: 14px;">  (calculate)  </span></td></tr>
  268.  
  269. <tr align="center"><th>Federal Withholding</th><td align="right"> <span name="federalWithheldAmount" id="federalWithheldAmount" style="font-size: 14px;">  (calculate)  </span></td><td bgcolor="#999999"></td></tr>
  270.  
  271. <tr align="center"><th>State Withholding</th><td align="right"> <span name="stateWithheldAmount" id="stateWithheldAmount" style="font-size: 14px;">  (calculate)  </span></td><td bgcolor="#999999"></td></tr>
  272.  
  273. <tr align="center"><th>Local 1 Withholding</th><td align="right"> <span name="local1EmployeeAmount" id="local1EmployeeAmount" style="font-size: 14px;">  (calculate)  </span></td><td align="right"> <span name="local1CompanyAmount" id="local1CompanyAmount" style="font-size: 14px;">  (calculate)  </span></td></tr>
  274.  
  275. <tr align="center"><th>Local 2 Withholding</th><td align="right"> <span name="local2EmployeeAmount" id="local2EmployeeAmount" style="font-size: 14px;">  (calculate)  </span></td><td align="right"> <span name="local2CompanyAmount" id="local2CompanyAmount" style="font-size: 14px;">  (calculate)  </span></td></tr>
  276.  
  277. <tr align="center"><th>Totals</th><td align="right" bgcolor="yellow"> <span name="netPaycheckAmount" id="netPaycheckAmount" style="font-size: 14px;">  (calculate)  </span></td><td align="right"> <span name="companyTotalExpenses" id="companyTotalExpenses" style="font-size: 14px;">  (calculate)  </span></td></tr>
  278.  
  279. <tr align="center"><td colspan="3" align="center"><i>The Total under Employee is their net paycheck</i></td></tr>
  280.  
  281. </table>
  282. </td></tr></table>
  283. </center>
  284.  
  285. <p>Once you hit Calculate, leave this window open, run the <a href="scriptexamples6.html">AppleScript</a> we provided, and your payroll data (14 lines in all!) will automatically be entered as a new check in QuickBooks.  Boom, done, as Steve Jobs would say.</p>
  286.  
  287. </div> <!-- End body indent-->
  288.  
  289.  
  290.  
  291. <a name="rates"> </a>
  292. <h2>Tax rates</h2>
  293. <div class="bodyindent">
  294.  
  295. <p>To change the default rates and example employee names that appear here, simply edit this HTML file in a text or HTML editor (the default employee gross pay and withholdings are found at the beginning of the JavaScript section). Once you have done that and put in the rates for your state, you should not need to enter anything in this section again unless the rates/thresholds change.</p>
  296.  
  297. <p>Federal withholding rates and thresholds are available in <a href="http://www.irs.gov/publications/p15/ar02.html#en_US_publink1000202402" target="window2">IRS Publication 15</a>.  For tax years 2010 and earlier and for 2013, the employer and employee contributions for Social Security are both 6.2%. In 2011-2012, the <b>employee</b> contribution/withholding rate for Social Security was reduced to 4.2% instead of 6.2% to promote economic stimulus.</p>
  298.  
  299. <p><b>PLEASE NOTE</b> - For 2013, there is an additional 0.9% Medicare withholding from employee wages that exceed $200,000.  This calculator does not yet account for that.<p>
  300.  
  301. <center>
  302. <table border="0" cellpadding="10">
  303. <tr valign="middle"><td>
  304.  
  305. <form name="taxRates" id="taxRates">
  306. <table border="1" cellpadding="1" cellspacing="1">
  307.  
  308. <tr align="center" bgcolor="eeffcc"><th>Tax Type</th><th>Employee share</th><th>Company share</th></tr>
  309.  
  310. <tr align="center"><th>Social Security</th><td><input type="text" size="6,1" name="ssEmployeeRate" id="ssEmployeeRate" style="font-size: 14px;" value="6.2">%</td><td><input type="text" size="6,1" name="ssCompanyRate" id="ssCompanyRate" style="font-size: 14px;" value="6.2">%</td></tr>
  311.  
  312. <tr align="center"><th colspan="2">Social Security Max Base</th><td> $<input type="text" size="10,1" name="ssMaxBase" id="ssMaxBase" style="font-size: 14px;" value="113,700"></td></tr>
  313.  
  314. <tr align="center"><th>Medicare</th><td><input type="text" size="6,1" name="medicareEmployeeRate" id="medicareEmployeeRate" style="font-size: 14px;" value="1.45">%</td><td><input type="text" size="6,1" name="medicareCompanyRate" id="medicareCompanyRate" style="font-size: 14px;" value="1.45">%</td></tr>
  315.  
  316. <tr align="center"><td colspan="3"><i>All income is subject to Medicare</i></td></tr>
  317.  
  318. <tr align="center"><th>Local tax 1</th><td><input type="text" size="6,1" name="local1EmployeeRate" id="local1EmployeeRate" style="font-size: 14px;" value="0">%</td><td><input type="text" size="6,1" name="local1CompanyRate" id="local1CompanyRate" style="font-size: 14px;" value="0">%</td></tr>
  319.  
  320. <tr align="center"><th>Local tax 2</th><td><input type="text" size="6,1" name="local2EmployeeRate" id="local2EmployeeRate" style="font-size: 14px;" value="0">%</td><td><input type="text" size="6,1" name="local2CompanyRate" id="local2CompanyRate" style="font-size: 14px;" value="0">%</td></tr>
  321.  
  322.  
  323. <tr align="center"><th colspan="2">Local Tax 1 Max Base</th><td> $<input type="text" size="10,1" name="local1MaxBase" id="local1MaxBase" style="font-size: 14px;" value="999,999"></td></tr>
  324.  
  325. <tr align="center"><th colspan="2">Local Tax 2 Max Base</th><td> $<input type="text" size="10,1" name="local2MaxBase" id="local2MaxBase" style="font-size: 14px;" value="999,999"></td></tr>
  326. </table>
  327. </form>
  328. </td><td>
  329.  
  330. <form name="unemployment" id="unemployment">
  331.  
  332. <table border="1" cellpadding="1" cellspacing="1">
  333. <tr align="center" bgcolor="eeffcc"><th colspan="2">Unemployment Tax</th></tr>
  334.  
  335. <tr align="center"><th>Federal Threshold</th><td>First $<input type="text" size="8,1" name="futaThreshold" id="futaThreshold" style="font-size: 14px;" value="7,000"> of income</td></tr>
  336.  
  337. <tr align="center"><th>Federal 940 Multiplier</th><td><input type="text" size="6,1" name="futaRate" id="futaRate" style="font-size: 14px;" value="0.008"></td></tr>
  338.  
  339. <tr align="center"><th>State Threshold</th><td>First $<input type="text" size="8,1" name="stateUnemployThreshold" id="stateUnemployThreshold" style="font-size: 14px;" value="30,900"> of income</td></tr>
  340.  
  341. <tr align="center"><th>State Company Share</th><td><input type="text" size="6,1" name="stateUnemployCompanyRate" id="stateFutaCompany" style="font-size: 14px;" value="2.000">%</td></tr>
  342.  
  343. <tr align="center"><th>State Employee Share</th><td><input type="text" size="6,1" name="stateUnemployEmployeeRate" id="stateFutaEmployee" style="font-size: 14px;" value="0.985">%</td></tr>
  344.  
  345. </table>
  346. </form>
  347. </td></tr></table>
  348.  
  349. </center>
  350.  
  351.  
  352. <p>We have provided two local taxes here.  You might have city and school tax, or perhaps city and county tax.  Most such taxes apply to all income so we've set the default Max Base for each to $999,999.    We have not provided Federal or State withholding here - this section handles tax rates, not withholding.</p>
  353.  
  354. </div> <!-- End body indent-->
  355.  
  356.  
  357.  
  358.  
  359. <a name="want"> </a>
  360. <h2>I Want....</h2>
  361. <div class="bodyindent">
  362.  
  363. <p>We're sure some of you have other needs such as multiple states/jurisdictions etc that are not covered here.  This page and the AppleScript that is used with it are meant to be guides or frameworks so that you can add those features yourself.  We have heavily commented the code so you can use it as a learning resource.  We do not have the manpower to code individual solutions for folks, but are happy to <a href="https://bytes.com/topic/contact.html">have your feedback</a>.</p>
  364. <p></p>
  365.  
  366. </div> <!-- End body indent-->
  367.  
  368.  
  369.  
  370. <p align="center"><a href="index.html#top">Table of Contents</a></p>
  371. <p align="center"><hr width="85%"></p>
  372.  
  373. <p align="center"><a href="http://www.safetyemporium.com/"><img src="pics/sebanner.gif" alt="Safety Emporium - Lab and Safety Supplies" width="468" height="60"></a></p>
  374.  
  375.  
  376.  
  377. <p align="center"><font size="-1"><b>Notice</b>: Copyright 2010-2020 by <a href="/index.html">Interactive Learning Paradigms Incorporated</a>.  All rights reserved.  Reposting or redistributing this material or derivatives thereof is not permitted and constitutes a violation of US and International copyright law. You are permitted to make and edit copies of this page for your localized personal/corporate off-line use provided that this entire notice remains intact. This product is offered "as is" and ILPI and its employees (who are not tax professionals or lawyers) will not be responsible for any errors, omissions, problems, tax audits, etc. caused by your <strike>incompetence</strike> use of this resource. This source document is available (only) at <a href="http://www.ilpi.com/help/applescriptQB/payrollcalculator.html">http://www.ilpi.com/help/applescriptQB/payrollcalculator.html</a></font></p>
  378.  
  379.  
  380. </body>
  381. </html>
  382.  
It is the source for the page http://www.ilpi.com/help/applescript...alculator.html .
2 Weeks Ago #3

Post your reply

Sign in to post your reply or Sign up for a free account.