fire number calculation