How much in a week does a guinea pig have to come out of its cage?

Every single day, maybe even multiple times a day. Unless their cage is exceptionally large, they need to come out every day. They need human socialization and will be very sad without it.