While it's hard to estimate exactly how long an outage will last, a little online sleuthing can let you know when you'll be gaming again. The PSN Server Status page can tell you if one or all of its services are currently offline. You can also check the @AskPlayStation Twitter account for updates or ask a customer support-related question.