With the new gym update, Pokémon have a motivation meter while defending a gym. This meter degrades over time, which makes it easier to remove that Pokémon from its defending position. Motivation can be reduced quicker when it loses a fight defending the gym, but can also be replenished using berries. However, if a Pokémon is left alone at a gym too long, it will lose all motivation and be returned to you as soon as it is defeated a single time.
How quickly does this motivation meter degrade on its own? That is, how long will a Pokémon defend a gym naturally?