When does the pain stop after delivery?

Right away? Couple weeks? Days? I heard you still have contractions after delivery