function price0301(amount) { var res = 0; if (amount > 1000) { res = amount * 2 + 4040;} else if (amount > 199) { res = amount * 5 + 1040;} else if (amount > 100) { res = amount * 7.5 + 540.5;} else if (amount > 20) { res = amount * 10 + 290;} else if (amount > 10) { res = amount * 15 + 190;} else if (amount > 2) { res = amount * 30 + 40;} else if (amount > 0) { res = amount * 50 + 0;} return res; } function price0301(amount) { var res = 0; if (amount > 2000) { res = amount * 0.1 + 398.5;} else if (amount > 500) { res = amount * 0.2 + 198.5;} else if (amount > 250) { res = amount * 0.5 + 48.5;} else if (amount > 139) { res = amount * 0.25 + 111;} else if (amount > 129) { res = amount * 0.5 + 76.25;} else if (amount > 100) { res = amount * 0.75 + 44;} else if (amount > 30) { res = amount * 1 + 19;} else if (amount > 10) { res = amount * 1.5 + 4;} else if (amount > 2) { res = amount * 1.75 + 1.5;} else if (amount > 1) { res = amount * 2.5 + 0;} else if (amount > 0) { res = amount * 3 + 0;} return res; } function price0310(amount) { var res = (amount * 5); return res; } function price0501(amount) { var res = (amount * ); return res; }