Question: how does qaza namaz work?
Answer: There actually are simple... There is no tradtion of offering qaza namaz from a saheeh Hadith. What is permissible is: You can occasionally offer Fajr prayers even after sunrise if you intended to wake up in time but could not, or, you got busy in something that you forgot about it.