How long do oven baked beans cook?

If you are making them from scratch, about 7 hours.