Let’s be honest. Your boss asked a reasonable question and your answer could have been something like “I need a day to familiarize myself with the code so I can give a rough but reasonable estimate. Also, I apologize I and the team fucked up by not sharing knowledge properly with each other and letting knowledge islands emerge”