Flash calculations