Sex after baby?

when is the right to have sex after you just had a baby?