Avg Cost - 25% = Car Dealer Cost
This takes into account both 10% and 15% fees and leaves 25% profit.
$buysuggest = round(($averagerecentsell * 1.10 * 1.15 * 1.33)*100,2);
may put it together. Perl?
<?
$sellprice = "1000";
$buyfeepercent = ".10";
$sellfeepercent = ".15";
$profitdesired = ".25";
$complete = 0;
$X = 1000;
while($percentprofit<=1.25){
$costafterfees = $X + ($X * $buyfeepercent);
$sellpayout = $sellprice - ($sellprice * $sellfeepercent);
$percentprofit = (1 / ($costafterfees / $sellpayout));
echo("Cost Before Buy Fee: ".$X."<BR>Sell Payout: ".$sellpayout."<BR>Percent Profit: ".$percentprofit."%<BR><BR>");
echo("Total Buy Price with 10%: ".($X * 1.1)."<BR>");
$X = $X - .01;
}
?>
$sellprice = "1000";
$sellfee = ".15";
$netsellprice = $sellprice - ($sellprice * $sellfee);
$output = $netsellprice/1.375;
echo($output);
Title | # Comments | Views | Activity |
---|---|---|---|
Solving an equation | 8 | 60 | |
CAGR Calculation For SIP | 13 | 60 | |
Need a nodal sequencing tool | 3 | 44 | |
Triangles - computing angles | 7 | 38 |
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
15 Experts available now in Live!