Is it healthy for a dog to go out how many times?

for sure its healthy for a dog to be out of the house.is it health for you staying at home all day?i would say 3 times a day minimum