-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
379 lines (335 loc) · 24 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
<html>
<head>
<title>Bernie Healthcare Calculator</title>
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.4.0/knockout-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout.mapping/2.4.1/knockout.mapping.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"></script>
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-throttle-debounce/1.1/jquery.ba-throttle-debounce.min.js"></script>-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/6.0.5/bootstrap-slider.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/6.0.5/css/bootstrap-slider.min.css" rel="stylesheet" />
<link href="Content/site.css" rel="stylesheet" />
<script src="Scripts/site.js"></script>
<!--<script src="https://apis.google.com/js/platform.js" async defer></script>-->
<link rel="shortcut icon" href="https://berniesanders.com/wp-content/themes/berniesanders2016/favicon.ico">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<meta property="og:url" content="valadian.github.io/SandersHealthcareCalculator" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Bernie Healthcare Calculator" />
<meta property="og:description" content="Javascript calculator to compare Bernie Sanders Single-Payer Healthcare plan to the Affordable Care Act" />
<meta property="og:image" content="https://s.bsd.net/bernie16/main/page/-/website/fb-share.png" />
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-72586539-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<!-- Load Facebook SDK for JavaScript -->
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="https://berniesanders.com">
<img src="Content/Bernie2016.png" style="width:100px;">
</a>
<div class="col-xs-6 title"><img src="Content/Title.png"></div>
<!--<a class="navbar-brand" href="/">Bernie Sanders Healthcare Calculator</a>-->
</div>
</div>
</div>
<div class="container body-content">
<form>
<div class="row">
<p>Calculated according to: <a href="https://berniesanders.com/wp-content/uploads/2016/01/Medicare-for-All.pdf">Medicare-for-All.pdf</a> Released by Bernie's campaign on 1/17/2016</p>
</div>
<div class="row">
<div class="col-sm-6">
<a href="https://twitter.com/share" class="twitter-share-button"{count}>Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<div class="fb-share-button" data-href="http://valadian.github.io/SandersHealthcareCalculator" data-layout="button"></div>
<div class="g-plus" data-action="share" data-annotation="none"></div>
<!--<span class='st_twitter_large' displayText='Tweet'></span>-->
<!--<span class='st_pinterest_large' displayText='Pinterest'></span>-->
<!--<span class='st_email_large' displayText='Email'></span>-->
</div>
</div>
<br>
<div class="row savings-spaceholder">
<div class="row savings-container">
<div class="col-sm-6 savings ">
<div class="savings-top" data-bind="text: employeeSavingsText(), css: { 'bg-success': employeeSavings()>=0, 'bg-danger': employeeSavings()<0 }"></div>
<div class="savings-bottom" data-bind="text: employeeSavingsFormatted(), css: { 'bg-success': employeeSavings()>=0, 'bg-danger': employeeSavings()<0 }"></div>
</div>
<div class="col-sm-6 savings">
<div class="savings-top" data-bind="text: employerSavingsText(), css: { 'bg-success': employerSavings()>=0, 'bg-danger': employerSavings()<0 }"></div>
<div class="savings-bottom" data-bind="text: employerSavingsFormatted(), css: { 'bg-success': employerSavings()>=0, 'bg-danger': employerSavings()<0 }"></div>
</div>
</div>
</div>
<div class="row">
<div class="panel panel-default">
<div class="panel-heading">Income & Tax information</div>
<div class="panel-body">
<fieldset class="form-group">
<label for="income">Wage Income:</label>
<div class="input-group">
<input data-bind="value: income" class="form-control currency" placeholder="Enter Wage Income" name="income" required /> <!--data-rule-required="true" data-rule-number="true" data-rule-min="0"-->
</div>
</fieldset>
<fieldset class="form-group advanced">
<label for="incomeShortCapGains">Short Term Capital Gains:</label>
<div class="input-group">
<input data-bind="value: incomeShortCapGains" class="form-control currency" placeholder="Enter ShortTermCapGains" name="incomeShortCapGains" />
</div>
</fieldset>
<fieldset class="form-group advanced">
<label for="incomeLongCapGains">Long Term Capital Gains:</label>
<div class="input-group">
<input data-bind="value: incomeLongCapGains" class="form-control currency" placeholder="Enter LongTermCapGains" name="incomeLongCapGains" />
</div>
</fieldset>
<fieldset class="form-group">
<label for="filingStatus">Filing Status:</label>
<div class="input-group">
<select data-bind="value: filingStatus" class="form-control">
<option value="0">Single</option>
<option value="1">Married filing Jointly</option>
<option value="2">Married filing Separately</option>
<option value="3">Head of Household</option>
<option value="1">Qualified Widow(er)</option>
</select>
</div>
</fieldset>
<fieldset class="form-group advanced">
<label for="selfEmployed">Self-Employed:</label>
<div class="input-group">
<select data-bind="value: selfEmployed" class="form-control">
<option value="0">No</option>
<option value="1">Yes</option>
</select>
</div>
</fieldset>
<fieldset class="form-group">
<label for="familySize">Family Size:</label>
<div class="input-group">
<div class="input-group-addon whoLabel">Adults</div>
<input data-bind="value: adults" class="form-control naturalNumber" name="adults" />
</div>
<div class="input-group">
<div class="input-group-addon whoLabel">Children</div>
<input data-bind="value: children" class="form-control naturalNumber" name="children" />
</div>
</fieldset>
<fieldset class="form-group advanced">
<label for="itemizedDeductions">Itemized Deductions:</label>
<div class="input-group">
<input data-bind="value: itemizedDeductions" class="form-control currency" placeholder="Enter Itemized Deductions" name="itemizedDeductions" />
</div>
</fieldset>
<hr class="advanced" />
<fieldset class="form-group advanced">
<label for="standardDeduction">Standard Deduction:</label>
<div class="input-group">
<input data-bind="value: standardDeduction()" class="form-control currency" name="standardDeduction" readonly />
</div>
</fieldset>
<fieldset class="form-group advanced">
<label for="exemptions">Exemptions:</label>
<div class="input-group">
<input data-bind="value: exemptions(), tooltip: {title: 'Family Size ('+familySize()+') x $4000', trigger: 'focus' }" class="form-control currency" name="exemptions" readonly />
</div>
</fieldset>
<fieldset class="form-group advanced">
<label for="totalDeductions">Total Deductions:</label>
<div class="input-group">
<input data-bind="value: totalDeductions()" class="form-control currency" name="totalDeductions" readonly />
</div>
</fieldset>
<fieldset class="form-group advanced">
<label for="taxableIncome">Taxable Income:</label>
<div class="input-group">
<input data-bind="value: taxableIncome()" class="form-control currency" name="taxableIncome" readonly />
</div>
</fieldset>
<fieldset class="form-group advanced">
<label for="federalWithholding">Federal Withholding:</label>
<div class="input-group">
<input data-bind="value: federalWithholding()" class="form-control currency" name="federalWithholding" readonly />
</div>
</fieldset>
<fieldset class="form-group advanced">
<label for="longCapGainsTax">Long Term Capital Gains Taxes:</label>
<div class="input-group">
<input data-bind="value: longCapGainsTax()" class="form-control currency" name="longCapGainsTax" readonly />
</div>
</fieldset>
<fieldset class="form-group advanced">
<label for="employeeMediTax">Medicare Taxes:</label>
<div class="input-group">
<div class="input-group-addon info whoLabel">Employee</div>
<input data-bind="value: employeeMediTax()" class="form-control currency" name="employeeMediTax" readonly />
</div>
<div class="input-group">
<div class="input-group-addon success whoLabel">Employer</div>
<input data-bind="value: employerMediTax()" class="form-control currency" name="employerMediTax" readonly />
</div>
</fieldset>
<fieldset class="form-group advanced">
<label for="employeeSocSecTax">Social Security Taxes:</label>
<div class="input-group">
<div class="input-group-addon info whoLabel">Employee</div>
<input data-bind="value: employeeSocSecTax()" class="form-control currency" name="employeeSocSecTax" readonly />
</div>
<div class="input-group">
<div class="input-group-addon success whoLabel">Employer</div>
<input data-bind="value: employerSocSecTax()" class="form-control currency" name="employerSocSecTax" readonly />
</div>
</fieldset>
</div>
<div class="panel-footer">
<div class="advanced-toggle rounded pull-right">
Advanced
<span class="glyphicon glyphicon-chevron-down"></span>
<span class="glyphicon glyphicon-chevron-up" style="display:none;"></span>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Insurance information</div>
<div class="panel-body">
<fieldset class="form-group">
<label for="insured">Have Insurance?:</label>
<div class="input-group">
<select data-bind="value: insured" class="form-control">
<option value="0">No</option>
<option value="1">Yes</option>
<option value="2">Yes, On someone else's plan</option>
</select>
</div>
</fieldset>
<fieldset class="form-group">
<label for="premium">Insurance Premiums:</label>
<div class="input-group">
<input data-bind="value: premium" class="form-control currency" placeholder="Enter Insurance Premium" name="premium" />
<select class="form-control" data-bind="value: premiumPeriod">
<option value="52">Weekly</option>
<option value="26">Biweekly</option>
<option value="12">Monthly</option>
<option value="1">Yearly</option>
</select>
</div>
</fieldset>
<fieldset class="form-group advanced">
<label for="premiumEmployer">Employer Paid Insurance Premium:</label>
<div class="input-group">
<input data-bind="value: premiumEmployer" class="form-control currency" placeholder="Enter Employer paid Insurance Premium" name="premiumEmployer" />
<select class="form-control" data-bind="value: premiumEmployerPeriod">
<option value="52">Weekly</option>
<option value="26">Biweekly</option>
<option value="12">Monthly</option>
<option value="1">Yearly</option>
</select>
</div>
</fieldset>
<fieldset class="form-group advanced">
<label for="copays">Average Copays:</label>
<div class="input-group">
<input data-bind="value: copays" class="form-control currency" placeholder="Enter Average Copays" name="copays" />
<select class="form-control" data-bind="value: copaysPeriod">
<option value="52">Weekly</option>
<option value="26">Biweekly</option>
<option value="12">Monthly</option>
<option value="1">Yearly</option>
</select>
</div>
</fieldset>
<fieldset class="form-group">
<label for="deductible">Deductible:</label>
<div class="input-group">
<input data-bind="value: deductible" class="form-control currency" placeholder="Enter Deductible" name="deductible" />
</div>
</fieldset>
<fieldset class="form-group advanced">
<label for="deductiblePercentage">Percentage of used Deductible:</label>
<div class="input-group">
<input id="deductiblePercentage" data-slider-id="deductiblePercentage" type="text" data-slider-min="0" data-slider-max="1" data-slider-step="0.05" data-slider-value="1" />
</div>
</fieldset>
<fieldset class="form-group advanced">
<label for="includeVariableCosts">Include Variable Costs?:</label>
<div class="input-group">
<select data-bind="value: includeVariableCosts, tooltip: {title: 'Deductibles and Co-pays', trigger: 'focus' }" class="form-control">
<option value="0">No</option>
<option value="1">Yes</option>
</select>
</div>
</fieldset>
<hr />
<fieldset class="form-group advanced">
<label for="uninsuredPenalty">Uninsured penalty:</label>
<div class="input-group">
<input data-bind="value: uninsuredPenalty" class="form-control currency" name="uninsuredPenalty" />
</div>
</fieldset>
<fieldset class="form-group">
<label for="employeeHealthCareCost">Estimated ObamaCare Costs:</label>
<div class="input-group">
<div class="input-group-addon info whoLabel">Employee</div>
<input data-bind="value: employeeHealthCareCost()" class="form-control currency" name="employeeHealthCareCost" readonly />
</div>
<div class="input-group">
<div class="input-group-addon success whoLabel">Employer</div>
<input data-bind="value: employerHealthCareCost()" class="form-control currency" name="employerHealthCareCost" readonly />
</div>
</fieldset>
<fieldset class="form-group">
<label for="employeeBernieCareTax">Estimated BernieCare Costs:</label>
<div class="input-group">
<div class="input-group-addon info whoLabel">Employee</div>
<input data-bind="value: employeeBernieCareTax()" class="form-control currency" name="employeeBernieCareTax" readonly />
</div>
<div class="input-group">
<div class="input-group-addon success whoLabel">Employer</div>
<input data-bind="value: employerBernieCareTax()" class="form-control currency" name="employerBernieCareTax" readonly />
</div>
</fieldset>
</div>
<div class="panel-footer">
<div class="advanced-toggle rounded pull-right">
Advanced
<span class="glyphicon glyphicon-chevron-down"></span>
<span class="glyphicon glyphicon-chevron-up" style="display:none;"></span>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading changelog-toggle">ChangeLog</div>
<div class="panel-body" style="display:none">
<p><a href="https://github.com/Valadian/SandersHealthcareCalculator/commit/65e67ecdd4eb609a050509bf6b5578304a7178bf">2016.01.18.1849</a> v0.1 Initial Release</p>
<p><a href="https://github.com/Valadian/SandersHealthcareCalculator/commit/3c90a44c4532c49a28b8df41858097a06dcd1214">2016.01.18.1955</a> v0.2 Fixed negative taxable income. Added Share buttons</p>
<p><a href="https://github.com/Valadian/SandersHealthcareCalculator/commit/699492e42fb0c7570fc848c8996667fa4782305e">2016.01.18.2059</a> v0.3 Bernie Branded Header!</p>
<p><a href="https://github.com/Valadian/SandersHealthcareCalculator/commit/f81a4cfcec95b35ba2037a2934160b261ca5db6f">2016.01.18.2122</a> v0.4 Added Link to original Proposal PDF</p>
</div>
</div>
</div>
</form>
</div>
<hr />
<footer>
<p align="center">© 2016 - <a href="mailto:berger_jesse@yahoo.com">Jesse Berger</a>, <a href="https://www.reddit.com/user/valadian">/u/valadian</a>, </p>
</footer>
</body>
</html>