Tom takes medication to help him sleep.  He takes 2 pills every day before bed.  He needs to go to the doctor every 6 months to get a new prescription and a visit to the doctor costs $400.  The medication costs $5 per pill, but insurance covers 80% of that cost.  How much does he pay a year for everything? Let's think step by step and output the final answer after "####".
user
He sees the doctor 12/6=<<12/6=2>>2 times a year
So he pays 400*2=$<<400*2=800>>800 for doctor visits
The cost of the pill is 5*2=$<<5*2=10>>10 per night
But insurance covers 10*.8=$<<10*.8=8>>8
So he pays 10-8=$<<10-8=2>>2 per night
So he pays 2*365=$<<2*365=730>>730 a year
SSo his total cost is 800+730=$<<800+730=1530>>1530 a year
#### 1530
Tom takes medication to help him sleep.  He takes 2 pills every day before bed.  He needs to go to the doctor every 6 months to get a new prescription and a visit to the doctor costs $400.  The medication costs $5 per pill, but insurance covers 80% of that cost.  How much does he pay a year for everything?
train