At what age can a child be left home alone for up to 8 hours?

I have a 10 year old and soon to be 9 year old, was just wondering what others thoughts were on this