$salsum = $salresult['salsum']; // sal sum $tempsaltotal = abs($saltotal); //total sum if $saltotal is negative $temphptotal = abs($hptotal); // totalhp total if $hptotal is negative $a = $total_sr + $total_o; // $a $b = $total_orh; // $b $c = $total_dir - $total_d; // $c $d = abs($c) ; // $d $s = $q - $r ; // finalsalary $t = $d - $p ; // remaining_osloss_one $u = $temphptotal - $r ; // remaining_hploss $v = min($t,$hptotal); $w = $hptotal - $v ; // semi_hp $x = $t - $v ; // remaining_osloss_two $y = min($c,$u); $z = $c - $y ; // Final_os $aone = $u - $y ; // remaining_hploss_two $atwo = min($x,$b); $athree = $b - $atwo ; $afour = min($athree,$aone); $afive = $athree - $afour ; // semihorse $asix = $x - $atwo ; // carriedforward_osloss $aseven = $aone - $afour ; // carriedforward_hploss/ $cfltemp = $cfl_hpl + $cfl_lfh ; $bone = min($w,$cfl_hpl); $btwo = min($afive,$cfl_lfh); $grandtotaleightyg = $eightygonetotal + $eightygtwototal + $eightygthreetotal + $eightygfourtotal ; $czero = min(((10/100) * $saltotal),$sixavalues['80CCD(1)']); $czero = round($czero); $cone = $sixavalues['80C'] + $sixavalues['80CCC'] + $czero ; $ctwo = min($cone,150000); $cthree = min($sixavalues['80CCD(1B)'],50000); $cfour = min($sixavalues['80CCD(2)'],150000,$tenperof_sal); $cfive = min($sixavalues['80CCG'],50000); $csix = min($sixavalues['80D'],60000); $cseven = min($sixavalues['80DD'],125000); $ceight = min($sixavalues['80DDB'],60000); $cnine = $sixavalues['80E'] ; $cten = min($grandtotaleightyg,$tenperof_resulteight); $celeven = min($sixavalues['80GG'],60000); $ctwelve = $sixavalues['80GGA'] ; $cthirteen = $sixavalues['80GGC'] ; $cfourteen = $sixavalues['80QQB'] ; $cfifteen = $sixavalues['80RRB'] ; $csixteen = min($sixavalues['80TTA'],10000); $cseventeen = min($sixavalues['80U'],125000); $semiten = $ctwo + $cthree + $cfour + $cfive + $csix + $cseven + $ceight + $cnine + $cten + $celeven + $ctwelve + $cthirteen + $cfourteen + $cfifteen + $csixteen + $cseventeen ; $semithirteen = $agriincome['grossagri'] - ($agriincome['expend'] + $agriincome['unabagri']) ; $age //User Age Calculated $semifourteen = $resulteleven - $resulttwelve ; $temptax $tone = $tax; //Tax at Normal Rate $ttwo = $other_persum + $spisi_taxamtone + $spisi_taxamttwo + ((30/100) * $lotracgam); //Tax at Special Rate $tthree = round($tthree); //Rebate on Agricultural Income $tseven = $itadvancetaxtotal; //IT Advance Tax Total $tten = $itselfasstaxtotal; //IT Self Assesment Tax Total $teight = $tds_sixteen + $tds_sixteena ; //TDS All forms Total $semitaxresulttwelve