Mercurial > titip
changeset 13:9f4d926cb9c5
Multiply bank fee
author | nanaya <me@myconan.net> |
---|---|
date | Wed, 03 Aug 2016 22:48:47 +0900 |
parents | 13d740477326 |
children | 72ee98d173a4 |
files | index.html |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/index.html Fri Jun 17 10:42:55 2016 +0900 +++ b/index.html Wed Aug 03 22:48:47 2016 +0900 @@ -81,7 +81,7 @@ <li>Perhitungan: <ul> <li>Bank: <code>jumlah × 1.07 × nilai_tukar</code>, dibulatkan ke seribuan terdekat.</li> - <li>Bank (alt): <code>jumlah × 1.02 × nilai_tukar + 25000</code>, dibulatkan ke seribuan terdekat. Rekeningnya sama.</li> + <li>Bank (alt): <code>jumlah × 1.02 × nilai_tukar + (25000 * ceil(jumlah / 35000))</code>, dibulatkan ke seribuan terdekat. Rekeningnya sama.</li> <li>PayPal: <code>jumlah × 1.05</code>, dibulatkan ke satuan terdekat.</li> </ul> </li> @@ -117,7 +117,7 @@ if (rates.bni !== 0) { $("#rate-text-bni").text(rates.bni.toLocaleString()); - $("#result-bank-bni").text((Math.ceil(x * 1.02 * rates.bni / 1000) * 1000 + 25000).toLocaleString()); + $("#result-bank-bni").text((Math.ceil(x * 1.02 * rates.bni / 1000) * 1000 + (25000 * Math.ceil(x / 35000))).toLocaleString()); } else { $("#rate-text-bni").text('x'); $("#result-bank-bni").text('x');