How long does one get to keep the third bean field in bohnanza?
You keep the third bean field for the duration of the game.  It would be harsh if it was limited as it does cost you 3 gold coins (victory points).

Here is a discussion about when to buy or not buy that third field.  Due to the cost, it is not always the right thing to do to purchase the field.