# Stock Option Proceeds Calculator # Version 1.0 # README File # By Mike Calabrese # http://www.mikecalabrese.com # 03/09/2000
# This application is available for free on an AS-IS basis. I am not # responsible for consequential damages, loss of income or whatever # else that may happen as a result of the use of this program.
This application is designed to calculate the net proceeds from the sale of stock options. It consists of a Perl script called stockopt.pl, a front end file called stockopt.html, a help screen called stockhelp.html and this README file. The following is a description of how the application works: The number of shares times the selling price equals the total selling price. The number of options times the cost of those options for each grant equals the cost of each grant. The cost of each grant added together equals the total grant cost. The total selling price minus the total grant cost equals the total gain. The Federal Tax percentage times the total gain divided by 100 plus Federal Tax amount equals the total Federal Tax. The State Tax percentage times the total gain divided by 100 plus State Tax amount equals the total State Tax. The FICA (or Social Security) percentage times the total gain divided by 100 plus FICA amount equals the total FICA amount. The Medicare percentage times the total gain divided by 100 plus Medicare amount equals the total Medicare amount. The Commission percentage times the total gain divided by 100 plus Commission amount equals the total Commission amount. The Other Deductions equal the total Other deductions amount. Any field not filled in is assumed to be a zero. The total gain minus the total Federal Tax, the total State Tax, the total FICA amount, the total Medicare amount, the total Commission amount and the total Other Deductions amount equals the total Net Proceeds. The following configuration changes need to be made to successfully run this application: 1) Create a directory on your web server where your HTML documents reside called stockopt. Chmod it to 755. In some cases, you may have to chgrp this directory to the proper group name for your site. Place the HTML files stockopt.html and stockhelp.html within this directory. Chmod these files to 755. You may have to chgrp them to the proper group name for your site. No configuration changes are necessary for stockhelp.html. For stockopt.html be sure to change the "FORM ACTION" line to point to the url location of stockopt.pl (For example- <FORM ACTION="http://www.yourdomain.com/cgi-bin/stockopt/stockopt.pl"> ). 2) Place the perl script stockopt.pl in your cgi-bin directory within it's own directory called stockopt. Be sure to chmod stockopt.pl to 755 and the stockopt directory to 755. On some servers you will have to chgrp these files to the proper ownership name for your site. On some sites you may have to change the .pl extension to .cgi. The only 2 things in the Perl script that need to be changed are to make sure that the path to Perl is correct. Typing "which perl" at the command line will answer that. And make sure that the $refurl points to the exact url path to stockopt.html. This keeps others from hijacking your form and pointing to your cgi.