Question: how many hours do you need to defend a gym to get 50 coins?
Answer: Players get one coin for every 10 minutes a Pokémon is in a gym, for a maximum of 50 coins a day. This means one Pokémon has to be in a gym for eight hours and 20 minutes to max out on coins.