Distance between battery cabinet and building