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 * 1); return res; } function price0320(amount) { var res = (amount * 29); return res; } function price0330(amount) { var res = (amount * 10); return res; } function price0340(amount) { var res = (amount * 10); return res; }