According to Hanafi commentary, what happens if the mistake is discovered while the day remains?

Kitab al-Sawm: Mistaken Dawn or Sunset, Qada and Kaffarah