-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
141 lines (133 loc) · 6.17 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Bitcoin Savings Plan or: How I Learned to Stop Worrying and Love the Volatility. Inspired by (SSS) - A Sane and Simple bitcoin Savings plan.">
<title>When Do I Sell My Bitcoin? The Bitcoin Withdrawal Calculator</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">
<!-- Custom styles for this template -->
<style>
.starter-template {
padding: 20px 15px;
text-align: center;
}
h1 img {
margin: 10px 0;
}
thead {
font-weight: bold;
}
.lead {
font-size: 1.1em;
font-style: italic;
color: #48a;
}
.initial-row {
color: #aaa;
}
</style>
</head>
<body>
<div class="container">
<div class="starter-template">
<h1>Bitcoin Savings Plan</h1>
<p style="color:#693;">
<strong>or:</strong> How I Learned to Stop Worrying and Love the Volatility
</p>
<p style="color:#693;">
<strong>or:</strong> When Should I Sell My Bitcoins?
</p>
<div class="row">
<div class="col-sm-4">
<label class="control-label" for="inputInitial">Initial Investment</label>
<br/>
<div class="input-group input-group-md">
<input type="text" id="inputInitial" class="form-control trigger" value="1">
<span class="input-group-addon">BTC</span>
</div>
</div>
<div class="col-sm-4">
<label class="control-label" for="inputExchRate">Initial Exchange Rate</label>
<br/>
<div class="input-group input-group-md">
<span class="input-group-addon">$</span>
<input type="text" id="inputExchRate" class="form-control trigger" value="5000.00">
<span class="input-group-addon">= 1 BTC</span>
</div>
</div>
<div class="col-sm-4">
<label class="control-label" for="inputInitial">Rake</label>
<br/>
<div class="input-group input-group-md">
<input type="text" id="inputRake" class="form-control trigger" value="5">
<span class="input-group-addon">%</span>
</div>
</div>
</div>
<div class="row" style="margin-top: 10px;">
<div class="col-sm-4">
<label class="control-label" for="inputCycles">Number of Cycles</label>
<br/>
<input type="text" id="inputCycles" class="form-control input-md trigger" value="10" />
</div>
<div class="col-sm-4">
<label class="control-label" for="inputMultiplier">Cycle Multiplier</label>
<br/>
<div class="input-group input-group-md">
<span class="input-group-addon">×</span>
<input type="text" id="inputMultiplier" class="form-control trigger" value="1.5" />
</div>
<button id="btnFixed" type="button" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span> Set for fixed $ withdrawals</button>
</div>
<div class="col-sm-4">
<label class="control-label">Output Units</label>
<br/>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-primary active">
<input type="radio" name="options" id="btc" value="BTC"> BTC
</label>
<label class="btn btn-primary">
<input type="radio" name="options" id="mBtc" value="mBTC"> mBTC
</label>
</div>
</div>
</div>
<br/>
<table class="table table-curved table-hover table-striped">
<thead>
<tr>
<td></td>
<td>$/BTC</td>
<td><span class="btc">BTC</span> Remaining</td>
<td><span class="btc">BTC</span> Remaining
<br/> Value in $</td>
<td><span class="btc">BTC</span> Sold</td>
<td>$ Out</td>
<td>$ Out
<br/> Running Total</td>
<td>% BTC</td>
</tr>
</thead>
<tbody id="results"></tbody>
</table>
<div id="dtLink"></div>
<br/>
<br/>
<div class="well well-lg">
<h4>The plan: for every doubling in BTC's exchange rate, withdraw a fixed percentage (the “rake”).</h4>
<p>Inspired by rpietila's <a href="https://bitcointalk.org/index.php?topic=345065.0" target="_blank"><em>(SSS) - A Sane and Simple bitcoin Savings plan</em></a> on BitcoinTalk.</p>
<p>Originally coded by <a href="https://bitcointalk.org/index.php?action=profile;u=35933" target="_blank">d9000</a></p>
</div>
</div>
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script src="js/table2csv.js"></script>
<script src="js/bsp-uncompressed.js"></script>
</div>
</body>
</html>