Formula for glass thickness in homemade aquariums?

is there a formula or rule for thickness in glass according to depth? for instance..if aquarium is 4ft deep does it require 3/4 inch 1inch..greater?? what is thickness with 5ft..so on..?? any help would be appreciated