Skip to content

Commit b287df6

Browse files
committedSep 14, 2015
income tax calculator
1 parent 125a657 commit b287df6

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
 

‎28_income_tax_calculator.py

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import requests
2+
3+
headers = {
4+
'Content-Type': 'application/x-www-form-urlencoded',
5+
'Accept': 'application/json',
6+
}
7+
8+
data = {
9+
'pay_rate': '10000',
10+
'filing_status': 'single',
11+
'pay_periods': 1,
12+
'state': 'CO',
13+
'year':
14+
'2014'
15+
}
16+
17+
r = requests.post(
18+
'http://taxee.io/api/v1/calculate/2014',
19+
data=data,
20+
headers=headers
21+
)
22+
23+
print(r.text)

‎readme.md

+1
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@
2727
1. **25_ip2geolocation.py**: Given a CSV file with an ip address (see sample - *25_sample_csv.csv*), return the geolocation based on the ip.
2828
1. **26_stock_scraper.py**: Scrape the S&P 500 Companies list from Wikipedia, then output the data.
2929
1. **27_send_sms.py**: Send SMS message via [TextBelt](http://textbelt.com/)
30+
1. **28_income_tax_calculator.py**: Income tax calcuator via [Taxee](http://taxee.io/)

0 commit comments

Comments
 (0)
Please sign in to comment.