Enter Your Info and Download Your Pay Check Stub Sample INSTANTLY!

The No-State Income Tax Sample Pay Stub Generator

Print a Paycheck Stub Sample with Your Information Included!

FOR WORKERS IN: Alaska, Florida, Nevada, South Dakota, Texas, Washington, Wyoming, New Hampshire and Tennessee

"; } return $data; } $sessionid = session_id(); $ipaddress = $_SERVER['REMOTE_ADDR']; $daysbetween = 15; $paysperyear= 24; $paystodate= $pay= $oasdi= $cdate= $fedamt= $hiamt = $stateamt= $YTDdcamt= $YTDfedamt= $YTDSIamt= $YTDHIamt= $YTDOASamt= $currentded= $currentnet= $YTDearn= $YTDded= $YTDnet=0; $cname=check_input(strtoupper($_POST['cname']), "Invalid COMPANY NAME."); $cstreet=check_input(strtoupper($_POST['cstreet']), "Invalid COMPANY STREET."); $clocation= check_input(strtoupper($_POST['clocation']), "Invalid COMPANY CITY, STATE ZIP."); $enumber=strtoupper($_POST['enumber']); $ename= check_input(strtoupper($_POST['ename']), "Invalid EMPLOYEE NAME."); $ssn= check_input($_POST['ssn'], "Invalid LAST 4 OF SSN."); $ssncomplete= "xxx-xx-" . $ssn; $_POST[totalsalary] = str_replace(",", "", $_POST['totalsalary']); $payperyear = $totalsalary = check_input($_POST['totalsalary'], "Invalid SALARY AMOUNT.
EX: 54000"); $payday = $_POST['selected_date']; $payfreq= $_POST['payfreq']; $paysneeded= $_POST['paysneeded']; if(isset($_POST['submitj']) || isset($_POST['submitj_x'])) { if (is_null($formproblems)) { function updatePaysToDate($sd, $daysbetween) { $currentyear = substr($sd,0,4);//date(Y); $jan1 = $currentyear . '-01-01'; $oneday = 86400; $d1 = strtotime($jan1); $d2 = strtotime($sd); $daysSoFar = round(abs($d2 - $d1) / $oneday) + 1; if (($currentyear=='2011')||($payfreq=='monthly')) { $paystodate = floor($daysSoFar/$daysbetween); } else if ($currentyear=='2012') { $paystodate = ceil($daysSoFar/$daysbetween); } else $paystodate = ceil($daysSoFar/$daysbetween); return $paystodate; } function setStartDate($date, $dbtween) { $change = $dbtween+3; $start = strtotime( '-' . $change . ' day' , strtotime ($date)); $start = date ('m/d/Y', $start); return $start; } function setBiStartDate($date, $dbtween, $change) { $start = strtotime( '-' . $change . ' day' , strtotime ($date)); $start = date ('m/d/Y', $start); return $start; } function setEndDate($date) { $change = 3; $end = strtotime( '-' . $change . ' day' , strtotime ($date)); $end = date ('m/d/Y', $end); return $end; } function setBiEndDate($date, $change) { $end = strtotime( '-' . $change . ' day' , strtotime ($date)); $end = date ('m/d/Y', $end); return $end; } $str = explode("/", $payday); $selMonth = $str[0]; $selDay = $str[1]; $selYear = $str[2]; $selected_date = $selYear . "-" . $selMonth . "-" . $selDay; $checkno = rand(3000, 20000); switch ($payfreq) { case ('daily'): $paysperyear=365; $daysbetween=1; $paystodate=updatePaysToDate($selected_date, $daysbetween); $sdate=setStartDate($selected_date, $daysbetween); $edate=setEndDate($selected_date); break; case ('weekly'): $paysperyear=52; $daysbetween=7; $paystodate=updatePaysToDate($selected_date, $daysbetween); $sdate=setBiStartDate($selected_date, $daysbetween, $daysbetween+1); $edate=setBiEndDate($selected_date, 2);break; case ('biweekly') : $paysperyear=26; $daysbetween=14; $paystodate=updatePaysToDate($selected_date, $daysbetween); $sdate=setBiStartDate($selected_date, $daysbetween, $daysbetween+2); $edate=setBiEndDate($selected_date, 3);break; case ('semimonthly'): $paysperyear=24; $daysbetween=15; $paystodate=updatePaysToDate($selected_date, $daysbetween);$sdate=setStartDate($selected_date, $daysbetween); $edate=setEndDate($selected_date); break; case ('monthly'): $paysperyear=12; $daysbetween=30; $paystodate=updatePaysToDate($selected_date, $daysbetween)+1; $sdate=setStartDate($selected_date, $daysbetween); $edate=setEndDate($selected_date);break; case ('quarterly') : $paysperyear=4; $daysbetween=90; $paystodate=updatePaysToDate($selected_date, $daysbetween)+1;$sdate=setStartDate($selected_date, $daysbetween); $edate=setEndDate($selected_date); break; case ('semiannual') : $paysperyear=2; $daysbetween=182; $paystodate=updatePaysToDate($selected_date, $daysbetween)+1; $sdate=setStartDate($selected_date, $daysbetween); $edate=setEndDate($selected_date);break; case ('annual'): $paysperyear=1; $daysbetween=365; $paystodate=1; $sdate=setStartDate($selected_date, $daysbetween); $edate=setEndDate($selected_date);break; } if($paystodate==0) $paystodate=1; $hoursperperiod = (52 * 40) / $paysperyear; //52*40/paydays $pay = $totalsalary/$paysperyear; $oasdi = 0.042*$pay; $hiamt = 0.0145*$pay; $fedamt = 0.122*$pay; $YTDdcamt = $paystodate * $defcomp; $YTDfedamt = $paystodate * $fedamt; $YTDOASamt = $paystodate * $oasdi; $YTDHIamt = $paystodate * $hiamt; $currentded = $hiamt + $fedamt + $defcomp + $oasdi; $currentnet = $pay-$currentded; $YTDearn = $paystodate*$pay; $YTDded = $currentded * $paystodate; $YTDnet = $currentnet * $paystodate; echo ""; echo ''; echo "
 
"; //header ('Content-Type: text/html'); $img = imagecreatefromjpeg('stub1.jpg'); imageantialias($img, true); $text_color = imagecolorallocate($img, 0, 0, 0); $text_font = 'verdana.ttf'; imagecreatetruecolor(50, 70); imagettftext($img, 11, 0, 50, 75, $text_color, $text_font, html_entity_decode($cname)); imagettftext($img, 11, 0, 50, 95, $text_color, $text_font, $cstreet); imagettftext($img, 11, 0, 50, 115, $text_color, $text_font, $clocation); imagettftext($img, 11, 0, 65, 175, $text_color, $text_font, $enumber); imagettftext($img, 11, 0, 275, 175, $text_color, $text_font, $ename); imagettftext($img, 11, 0, 550, 175, $text_color, $text_font, $ssncomplete); imagettftext($img, 11, 0, 690, 175, $text_color, $text_font, $sdate); imagettftext($img, 11, 0, 805, 175, $text_color, $text_font, $edate); imagettftext($img, 11, 0, 920, 175, $text_color, $text_font, $payday); imagettftext($img, 11, 0, 55, 250, $text_color, $text_font, 'REGULAR PAY'); imagettftext($img, 11, 0, 220, 250, $text_color, $text_font, sprintf("%01.2f",$hoursperperiod)); imagettftext($img, 11, 0, 445, 250, $text_color, $text_font, sprintf("%01.2f",$pay)); imagettftext($img, 11, 0, 570, 250, $text_color, $text_font, 'MEDICARE'); imagettftext($img, 11, 0, 570, 275, $text_color, $text_font, 'SSA'); imagettftext($img, 11, 0, 570, 300, $text_color, $text_font, 'FED TAX AMT'); imagettftext($img, 11, 0, 770, 250, $text_color, $text_font, sprintf("%01.2f",$oasdi)); imagettftext($img, 11, 0, 770, 275, $text_color, $text_font, sprintf("%01.2f",$hiamt)); imagettftext($img, 11, 0, 770, 300, $text_color, $text_font, sprintf("%01.2f",$fedamt)); imagettftext($img, 11, 0, 925, 250, $text_color, $text_font, sprintf("%01.2f",$YTDOASamt)); imagettftext($img, 11, 0, 925, 275, $text_color, $text_font, sprintf("%01.2f",$YTDHIamt)); imagettftext($img, 11, 0, 925, 300, $text_color, $text_font, sprintf("%01.2f",$YTDfedamt)); imagettftext($img, 11, 0, 75, 510, $text_color, $text_font, sprintf("%01.2f",$pay)); imagettftext($img, 11, 0, 225, 510, $text_color, $text_font, sprintf("%01.2f",$currentded)); imagettftext($img, 11, 0, 380, 510, $text_color, $text_font, sprintf("%01.2f",$currentnet)); imagettftext($img, 11, 0, 520, 510, $text_color, $text_font, sprintf("%01.2f",$YTDearn)); imagettftext($img, 11, 0, 670, 510, $text_color, $text_font, sprintf("%01.2f",$YTDded)); imagettftext($img, 11, 0, 815, 510, $text_color, $text_font, sprintf("%01.2f",$YTDnet)); imagettftext($img, 11, 0, 935, 510, $text_color, $text_font, $checkno); $jpgdest = "approvestubs/" . $sessionid . ".jpg"; //$pdfdest = "sample-stubs/" . $transid . ".pdf"; //imagejpeg($img); @imagejpeg($img, $jpgdest, 100); echo '

Paystub 1 of ' . $paysneeded . '

'; echo ''; echo ""; echo ""; echo "
 
"; exit; } //form errors if ($formproblems != null) echo "
Please Correct the Following:
$formproblems
"; } //submitted form ?>
Number of Pay Periods to Generate:
1. Your Employer's Information
2. Your Information
3. Your Income
4. Pay Frequency

/>
/>
/>
/>
/>
/>
/>
/>

5. Your Payday
Click here to see a finished paystub sample.
Problem with your stub delivery? Have your stub resent.