How long does it take for you to heal after sex?

So I just lost my virginity yesterday. My boyfriend and I went a little rough and I noticed that I broke my hymen/tore a bit. I've been sore and in a little pain all day. I looked down there and saw a little tear....how long does it take for the pain to go away and tear to heal?