Reach airport before 11pm and meet the immigration officer. As you are at airport on 27th and not overstayed. You will have no problem. There will be no fine. No problem at all. Secondly do your online checkin for your flight on 27th itself and print your boarding pass.