leftover formula