I have very moderate sunburn on my arms, shoulders, back and belly. How do I make it stop hurting so I can sleep at night?

Also, how long does it take for the sunburn’s pain to go away? How about redness?