He takes 1000/500=<<1000/500=2>>2 pills each time
He takes them 24/6=<<24/6=4>>4 times a day
So he takes 4*2=<<4*2=8>>8 pills per day
He takes pills for 2*7=<<2*7=14>>14 days
So he takes 8*14=<<8*14=112>>112 pills
#### 112