How much money did he leave home with

A man went to 4 different temples with some money.
The moment he went to the 1st temple, his money doubled and he donated 100 bucks.
He went to the 2nd temple, his money doubled again; and he donated 100 bucks over there also.
In the 3rd temple, the money doubled once gain; and he again donated 100 bucks over there also.
While visiting the 4th and the last temple, his money doubled and he donated 100 bucks and he was left empty-handed.
How much money did he leave home with?