When do I raise the flaps on the a320?

After takeoff, when do I retract the flaps? Too early and the plane sinks, too late and I don’t gain enough speed! Any way to know? Thanks!

Hi,
at the latest shortly before the speed indicator reaches the red line, otherwise you will damage the plane.