Car body repair cost calculator




Car Body Repair Cost Calculator




Car Body Repair Cost Calculator

This calculator will help you estimate the cost of repairing the body of your car. Please enter the following information:








Results

The estimated cost of repairing the body of your car is $.

// Calculate the cost of the repair. var cost = 0; if (damage == "dent") { cost = 100; } else if (damage == "scratch") { cost = 50; } else if (damage == "crack") { cost = 200; } else if (damage == "hole") { cost = 300; }

// Increase the cost based on the location of the damage. if (location == "front") { cost *= 1.5; } else if (location == "rear") { cost *= 1.25; } else if (location == "side") { cost *= 1.1; }

// Increase the cost based on the size of the damage. if (size > 10) { cost *= 1.25; } else if (size > 20) { cost *= 1.5; } else if (size > 30) { cost *= 1.75; }

// Display the cost of the repair. $("#cost").html(cost); }); });


Like this post? Please share to your friends:
Leave a Reply

;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: