function price0301(amount) { var res = 0; if (amount > 500) { res = amount * 1 + 1250;} else if (amount > 249) { res = amount * 3 + 249;} else if (amount > 129) { res = amount * 2 + 500;} else if (amount > 119) { res = amount * 3 + 370;} else if (amount > 99) { res = amount * 4 + 250;} else if (amount > 29) { res = amount * 5 + 150;} else if (amount > 9) { res = amount * 10 + 0;} else if (amount > 1) { res = amount * 9 + 11;} else if (amount > 0) { res = amount * 19 + 0;} return res; } function price0303(amount) { var res = (amount * 0,9); return res; } function price0310(amount) { var res = (amount * 5); return res; } function price0401(amount) { var res = (amount * 5); return res; }