You can keep unspent green mana indefinitely while Fangorn, Tree Shepherd is on the battlefield. That means if you add a green mana during one step or phase, you can spend it during a later step or phase, or even a later turn. Other types of mana will be lost as normal as each step and phase ends.