The length of time that you can leave beer in the fermenter depends on several factors, including the type of beer, the specific yeast strain used, the fermentation conditions, and your desired flavor profile. For a Pilsner, a general rule of thumb is to leave the beer in the fermenter for at least two to four weeks, or until fermentation has completed and the gravity has stabilized.

Pilsners are typically fermented at cooler temperatures than other beer styles, usually around 10-12°C (50-54°F). This lower fermentation temperature can slow down the fermentation process, and it may take longer for the beer to reach its final gravity and for the yeast to complete fermentation.

Once fermentation has completed and the gravity has stabilized, you can leave the beer in the fermenter for additional time to allow the yeast to clean up any remaining off-flavors and to allow the beer to clarify. This process is called conditioning, and for a Pilsner, it is typically done at a cooler temperature than fermentation, around 0-4°C (32-39°F) for several weeks to several months.

However, it’s important to note that leaving beer in the fermenter for too long can lead to off-flavors and other undesirable characteristics, such as autolysis (the breakdown of yeast cells) and oxidation. Therefore, it’s a good idea to monitor the beer regularly during the fermentation and conditioning process and to package or transfer the beer to a secondary vessel or keg once it has reached its desired flavor and clarity.