<?php
$MSRP_name = 28155;
$Invoice = 27157;
$INVOICE_Discount = 2000;
$Carvoy_cost =24382; echo '$Carvoy_cost = ', $Carvoy_cost, "\n";
$Profit = 1000;
$Rebates = 0;
$Dealer_Cash = 7200;
$Miles_Per_Year = 10000;
$MONTH_TERM = 36;
$MF_RATE = 0.00001;
$Tax_Rate = 0.08875;
$Bank_Fee = 625;
$Reg_Fee = 312.5;
$Net_cap_Cost = 25382; echo '$Net_cap_Cost = ', $Net_cap_Cost, "\n" ;
$Res_value = 0.54;
$Adj_Res_value = 0.46;
$month36_residual_value = 15203.70; echo '$month36_residual_value = ', $month36_residual_value, "\n" ;
$Dep_Value = $Net_cap_Cost - $month36_residual_value; echo '$Dep_Value = ', $Dep_Value, "\n";
$Value_for_MF = $Net_cap_Cost + $month36_residual_value; echo '$Value_for_MF = ' , $Value_for_MF, "\n";
$Raw_monthly = $Dep_Value / $MONTH_TERM; echo '$Raw_monthly = ' , $Raw_monthly, "\n";
$Interest_Value = 0.41 ; echo '$Interest_Value = ' , $Interest_Value, "\n";
$Bottom_line_monthly = $Raw_monthly + $Interest_Value; echo '$Bottom_line_monthly = ' , $Bottom_line_monthly, "\n";
$Upfront_Tax = $Bottom_line_monthly * $MONTH_TERM * $Tax_Rate; echo '$Upfront_Tax = ' , $Upfront_Tax, "\n";
$Cashdown_Tax = $Bank_Fee * $Tax_Rate ; echo '$Cashdown_Tax = ' , $Cashdown_Tax, "\n";
$Tire_Tax = 12.5;
$Enter_Due_On_Signing = 5000;
$tax_fees = $Cashdown_Tax + $Tire_Tax + $Reg_Fee + $Bank_Fee ; echo '$tax_fees = ' , $tax_fees, "\n";
$feesdue = - ( 1 / (1+$MF_RATE*$MONTH_TERM-$MONTH_TERM+$Tax_Rate*$MONTH_TERM*$MONTH_TERM*$MF_RATE) )*($Net_cap_Cost-$Enter_Due_On_Signing-$month36_residual_value+$tax_fees*$MONTH_TERM+$Tax_Rate*$MONTH_TERM*$Enter_Due_On_Signing-$Tax_Rate*$MONTH_TERM*$month36_residual_value+$Tax_Rate*$MONTH_TERM*$MONTH_TERM*$MF_RATE*$Net_cap_Cost-$Tax_Rate*$MONTH_TERM*$MONTH_TERM*$MF_RATE*$Enter_Due_On_Signing+$Tax_Rate*$MONTH_TERM*$MONTH_TERM*$month36_residual_value*$MF_RATE+$MF_RATE*$MONTH_TERM*$Net_cap_Cost-$MF_RATE*$MONTH_TERM*$Enter_Due_On_Signing+$month36_residual_value*$MF_RATE*$MONTH_TERM);
//$feesdue = ( ( $tax_fees+$Enter_Due_On_Signing*$Tax_Rate ) / (1+$Tax_Rate));
//$feesdue = ($Net_cap_Cost-$Enter_Due_On_Signing-$month36_residual_value+$tax_fees*$MONTH_TERM+$Enter_Due_On_Signing*$MONTH_TERM*$Tax_Rate+$MF_RATE*$MONTH_TERM*$Net_cap_Cost-$MF_RATE*$MONTH_TERM*$Enter_Due_On_Signing+$MF_RATE*$MONTH_TERM*$month36_residual_value)/($MONTH_TERM*$Tax_Rate+$MONTH_TERM-1-$MF_RATE*$MONTH_TERM);
echo $tax_fees;
echo PHP_EOL;
echo $feesdue;
- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
- $Carvoy_cost = 24382
$Net_cap_Cost = 25382
$month36_residual_value = 15203.7
$Dep_Value = 10178.3
$Value_for_MF = 40585.7
$Raw_monthly = 282.73055555556
$Interest_Value = 0.41
$Bottom_line_monthly = 283.14055555556
$Upfront_Tax = 904.634075
$Cashdown_Tax = 55.46875
$tax_fees = 1005.46875
1005.46875
252.2421702933
- Output for 8.3.5
- Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
$Carvoy_cost = 24382
$Net_cap_Cost = 25382
$month36_residual_value = 15203.7
$Dep_Value = 10178.3
$Value_for_MF = 40585.7
$Raw_monthly = 282.73055555556
$Interest_Value = 0.41
$Bottom_line_monthly = 283.14055555556
$Upfront_Tax = 904.634075
$Cashdown_Tax = 55.46875
$tax_fees = 1005.46875
1005.46875
252.2421702933
preferences:
159.05 ms | 402 KiB | 215 Q