DEVTOME.COM HOSTING COSTS HAVE BEGUN TO EXCEED 115$ MONTHLY. THE ADMINISTRATION IS NO LONGER ABLE TO HANDLE THE COST WITHOUT ASSISTANCE DUE TO THE RISING COST. THIS HAS BEEN OCCURRING FOR ALMOST A YEAR, BUT WE HAVE BEEN HANDLING IT FROM OUR OWN POCKETS. HOWEVER, WITH LITERALLY NO DONATIONS FOR THE PAST 2+ YEARS IT HAS DEPLETED THE BUDGET IN SHORT ORDER WITH THE INCREASE IN ACTIVITY ON THE SITE IN THE PAST 6 MONTHS. OUR CPU USAGE HAS BECOME TOO HIGH TO REMAIN ON A REASONABLE COSTING PLAN THAT WE COULD MAINTAIN. IF YOU WOULD LIKE TO SUPPORT THE DEVTOME PROJECT AND KEEP THE SITE UP/ALIVE PLEASE DONATE (EVEN IF ITS A SATOSHI) TO OUR DEVCOIN 1M4PCuMXvpWX6LHPkBEf3LJ2z1boZv4EQa OR OUR BTC WALLET 16eqEcqfw4zHUh2znvMcmRzGVwCn7CJLxR TO ALLOW US TO AFFORD THE HOSTING.

THE DEVCOIN AND DEVTOME PROJECTS ARE BOTH VERY IMPORTANT TO THE COMMUNITY. PLEASE CONTRIBUTE TO ITS FURTHER SUCCESS FOR ANOTHER 5 OR MORE YEARS!

This is a Exchange Fee Calculator

Save it to your desktop as a whatever.html and then you can input information.

Follow this link to see a live version. http://devtome.com/app/feecalc.html

<!DOCTYPE html>
<html>
<head>
		<meta charset="UTF-8" />
		<title>Trading Spread Fee Calculator</title>
		<link rel="stylesheet" type="text/css" media="all" href="style.css" />
		<link rel="shortcut icon" href="favicon.ico" />
		<link rel="apple-touch-icon" href="apple-touch-icon.png" />
		<script src="files/js/jquery-1.7.1.min.js"></script>
		<script src="files/js/jquery-ui-1.8.16.custom.min.js"></script>

	</head>
	<body class="">
		<h1>Trading Spread Fee Calculator</h1>
		<h2 class="byline">Calculate what price you would have to buy or sell at to cover round-trip trading fees and make a profit</h2>					
		
<form id="calc-form">

<div id="buy-btc-pane" class="btc-calc-pane">
	<h3 style="margin:0 0 10px 0">Trading Profit/Loss Calculator</h3>

	<div style="margin-bottom:10px;">
		Your Exchanges fee:
		<select id="f-fee-percent" name="f-fee-percent">
<option value="0.006">0.6</option>
<option value="0.0055">0.55</option>
<option value="0.0053">0.53</option>
<option value="0.0050">0.50</option>
<option value="0.0046">0.46</option>
<option value="0.0043">0.43</option>
<option value="0.0040">0.40</option>
<option value="0.0030">0.30</option>
<option value="0.0029">0.29</option>
<option value="0.0028">0.28</option>
<option value="0.0027">0.27</option>
<option value="0.0026">0.26</option>
<option value="0.0025">0.25</option>
<option value="0.0025">0.20</option>
	</select>%
	</div>

	<table>
		<tr>
			<td align="center" width="115">Buy BTC</td>
			<td align="center" width="25"></td>
			<td align="center" width="115">Price (USD)</td>
			<td align="center" width="25"></td>
			<td align="center" width="115">Total Paid (USD)</td>
			<td align="center" width="25"></td>
			<td align="center" width="115">Fee (BTC)</td>
			<td align="center" width="25"></td>
			<td align="center" width="115">BTC (Received)</td>
		</tr>
		<tr>
			<td align="center">&#3647;<input type="text" id="f-btc" name="f-btc" /></td>
			<td align="center">*</td>
			<td align="center">$<input type="text" id="f-price" name="f-price" /></td>
			<td align="center">=</td>
			<td align="center">$<input class="disable" type="text" id="f-paid" name="f-paid" /></td>
			<td align="center">&ndash;</td>
			<td align="center">&#3647;<input class="disable" type="text" id="f-fee-btc" name="f-fee-btc" /></td>
			<td align="center">=</td>
			<td align="center">&#3647;<input class="disable" type="text" id="f-net-btc" name="f-net-btc" /></td>
		</tr>

		<tr>
			<td align="center" width="115">Sell BTC</td>
			<td align="center" width="25"></td>
			<td align="center" width="115">Price (USD)</td>
			<td align="center" width="25"></td>
			<td align="center" width="115">Amount (USD)</td>
			<td align="center" width="25"></td>
			<td align="center" width="115">Fee (USD)</td>
			<td align="center" width="25"></td>
			<td align="center" width="115">USD (Received)</td>
		</tr>
		<tr>
			<td align="center">&#3647;<input class="disable" type="text" id="s-btc" name="s-btc" /></td>
			<td align="center">*</td>
			<td align="center">$<input type="text" id="s-price" name="s-price" /></td>
			<td align="center">=</td>
			<td align="center">$<input class="disable" type="text" id="s-paid" name="s-paid" /></td>
			<td align="center">&ndash;</td>
			<td align="center">$<input class="disable" type="text" id="s-fee-usd" name="s-fee-usd" /></td>
			<td align="center">=</td>
			<td align="center">$<input class="disable" type="text" id="s-net-usd" name="s-net-usd" /></td>
		</tr>

		<tr>
			<td align="center"></td>
			<td align="center"></td>
			<td align="center"></td>
			<td align="center"></td>
			<td align="center"></td>
			<td align="center"></td>
			<td align="center"></td>
			<td align="center"></td>
			<td align="center">Profit/Loss (USD)</td>
		</tr>
		<tr>
			<td align="center"></td>
			<td align="center"></td>
			<td align="center"></td>
			<td align="center"></td>
			<td align="center"></td>
			<td align="center"></td>
			<td align="center"></td>
			<td align="center"></td>
			<td align="center">$<input class="disable" type="text" id="profit-loss" name="profit-loss" /></td>
		</tr>

	</table>

</div>
<br />
</form>
<script type="text/javascript">
(function()
{
	var calculatePrice = function()
	{
		var
			btc = $('#f-btc').val(),
			price = $('#f-price').val(),
			paid = btc * price,
			percent = $('#f-fee-percent').val(),
			fee = btc * percent,
			btcPurchased = btc - fee,
			btcSold = btcPurchased,
			sellFee = (paid / btcSold) * btcSold * percent,
			breakevenPrice = (paid / btcSold) + sellFee,
			totalBreakevenAmount = (btcSold * breakevenPrice) - sellFee;


		if (btc <= 0 || price <= 0 || percent <= 0)
		{
			paid = fee = btcPurchased = 0.0;
		}

		$('#f-paid').val(paid);
		$('#f-gross-btc').val(paid);
		$('#f-fee-btc').val(fee);
		$('#f-net-btc').val(btcPurchased);

		$('#s-btc').val(btcPurchased);


		var
			sBtc = $('#s-btc').val(),
			sPrice = $('#s-price').val(),
			sPaid = sBtc * sPrice,
			sFee = sPaid * percent,
			sNet = sPaid - sFee;

		if (sBtc <= 0 || sPrice <= 0)
		{
			sPaid = sFee = sNet = 0.0;
		}

		$('#s-paid').val(sPaid);
		$('#s-fee-usd').val(sFee);
		$('#s-net-usd').val(sNet);

		var profitLoss = sNet - paid;
		$('#profit-loss').val(profitLoss);

		if (profitLoss < 0)
		{
			$('#profit-loss').removeClass('positive').addClass('negative');
		}
		else
		{
			$('#profit-loss').removeClass('negative').addClass('positive');
		}


//alert('btc: ' + btc + ' ' + ' price: ' + price + ' percent: ' + percent + ' fee: ' + fee + ' btcPurchased: ' + btcPurchased);

	};

	$(document).ready(function()
	{
		$('#calc-form').submit(function()
		{
			return false;
		});

		$('#calc-form input').keyup(function()
		{
			calculatePrice();
		});

		$('#calc-form select').change(function()
		{
			calculatePrice();
		});

	});
})();
</script>
		<div class="footer">
		</div>
	</body>
</html>

QR Code
QR Code exchange_fee_calculator (generated for current page)
 

Advertise with Anonymous Ads