PHP Classes

PHP Covid Relief Checks Calculator: Calculate the amount of a check as Covid-19 relief

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 68 This week: 1All time: 10,286 This week: 560Up
Version License PHP version Categories
covidrelief 1.0.0Free for non-comm...7Algorithms, PHP 5, Finances
Description 

Author

This class can be used to calculate the amount of a check as Covid-19 relief.

It takes as parameters few variables like the IRS filing status, salary earned in the last filing year and number of kids claimed as dependents.

The class takes the variables and calculates the expected amount for the relief check due to the Covid-19 pandemic.

Innovation Award
PHP Programming Innovation award nominee
April 2020
Number 3
Many people in the United States are entitled to receive from the government an amount of money to help them to live during the period when COVID-19 pandemic made them stop working.

This package allows those people to calculate the amount they are entitled to receive based on details of their conditions of life.

Manuel Lemos
Picture of Adeola Odusola
  Performance   Level  
Name: Adeola Odusola is available for providing paid consulting. Contact Adeola Odusola .
Classes: 2 packages by
Country: United States United States
Age: ???
All time rank: 4309546 in United States United States
Week rank: 411 Up48 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

Example

<form method="post" action="">
    <table>
        <tr>
            <td>
                <label for="status">Status:</label>
            </td>
            <td>
                Single
                <input type="radio" name="status" value="single" required="true"/>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                Head of household
                <input type="radio" name="status" value="head_of_household" required="true"/>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                Married
                <input type="radio" name="status" value="married" required="true"/>
            </td>
        </tr>
        <tr>
            <td>
                <label for="salary">Salary: $</label>
            </td>
            <td>
                <input type="text" name="salary" value="" required="true" pattern="\d+((\.)\d{2})?"/>
            </td>
        </tr>
        <tr>
            <td>
                <label for="kids">Number of children:</label>
            </td>
            <td>
                <input type="text" name="kids" value="" required="true" pattern="[0-9]{1,}"/>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <input type="submit" name="submit" value="calculate check"/>
            </td>
        </tr>
     
    </table>
</form>


<?php
require_once 'CovidRelief.class.php';

if (isset(
$_POST['submit'])){
   
// get form fields
   
$status=$_POST['status'];
   
$salary=$_POST['salary'];
   
$kids=$_POST['kids'];
   
   
$relief=new CovidRelief($status,$salary,$kids);
   
$amount=$relief->calculateReliefCheck();
   
    echo
"Your check amount is: $$amount";
  
}




Details

The application allows users to enter their IRS filing status, salary earned in the last filing year, and the number of children claimed as dependents in order to calculate the expected relief check due to the Covid-19 pandemic. Singles/married filing separately full refund: $1200 plus $500 per child Heads of household full refund: $1200 plus $500 per child Married full refund: $2400 plus $500 per child To qualify for a full refund: Singles/married filing separately must have a salary of $75000 or less. Head of households must have a salary of $112,500 or less. Married filing jointly must have a salary of $150000 or less. If the salary earned is more than the allowed range for your corresponding filing status, the individual will lose $5 for every $100 earned over the allowed salary range. To qualify for a partial refund: Singles/married filing separately must have a salary between $75000 and $99000 Head of households must have a salary between $112,500 and $136,500 Married filing jointly must have a salary between $150000 and $198000 The following will not qualify: Singles/married filing separately with a salary more than $99000 and no children Head of households with a salary more than $136,500 and no children Married filing jointly with a salary more than $150000 and no children Reference IRS. Economic Impact Payment Information Center. (2020). Retrieved from https://www.irs.gov/coronavirus/economic-impact-payment-information-center#elig

  Files folder image Files  
File Role Description
Accessible without login Plain text file CovidRelief.class.php Class CovidRelief class file
Accessible without login Plain text file driver.php Example driver class
Accessible without login Plain text file readme Doc. description

 Version Control Unique User Downloads Download Rankings  
 0%
Total:68
This week:1
All time:10,286
This week:560Up