turnoff calculations