Fixed lightning calculation