You can finish the visits at any time you choose.  However, the visits usually stop at around 3 months after the birth, but sometimes it can be a bit longer.