Jump to content

Search the Community

Showing results for tags 'calculations php config'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. //I am calculating payroll contributions to 401k to give employees a baseline outlook for 20 years to check against their portfolio quarterly reports. It all works until numbers start getting larger. Nothing //ginormous...this is the reason I am at a loss. Is there a setting in php.ini that would be bombing? Sorry...the code formatting tool is acting dumb. $Pay_earnings = $_REQUEST['Pay_earnings']; $Perc_contr = $_REQUEST['Perc_contr']/100; $Perc_emp_contr = $_REQUEST['Perc_emp_contr']/100; if($Perc_contr > .08){ $perc_non_matched = $Perc_contr - .08; $Perc_contr = .08; }else{ $non_matched_contri = 0; } $yourContrib = number_format(round( (($Pay_earnings*$Perc_contr)+($Pay_earnings*$perc_non_matched)), 2)); $empContrib = number_format(round(($Pay_earnings*$Perc_contr)*$Perc_emp_contr,2)); $totalContrib = number_format($yourContrib+$empContrib); echo " <br /> <table class='Standard' align='center' width='900' border='1'> <tr bgcolor='#CCCCCC'> <td colspan='3' align='center'><h1>Per Paycheck Contribution</h1></td> </tr> <tr> <td width='' align='center'><b><big>Your Contribution</big></b></td> <td width='' align='center'><b><big>Employer Matched Contribution</big></b></td> <td width='' align='center'><b><big>Total Contribution</big></b></td> </tr> <tr> <td width='' align='center'>$"."$yourContrib</td> <td width='' align='center'>$"."$empContrib</td> <td width='' align='center'>$"."$totalContrib</td> </tr> <tr bgcolor='#CCCCCC'> <td colspan='3' align='center'><h1>Projection Base(Without Investment Return)</h1></td> </tr> This works find until my $Perc_contr rises above 40. Then my $totalContrib toward the bottom does not reflect my $yourContrib in the addition. But the actual TD holding the $yourContrib is fine. I am frikin dumbfounded....
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.