Personally I spent a week in Berlin and loved it. If you just want to see the highlights, 3 nights should be sufficient. But if your keen to explore further and enjoy the nightlife, a week felt like the right amount.