fixed flux calculation