The last ferry leave havelock at 4.30 PM and reach port blair in 2.5 hrs.
However, due to weather conditions, there might be some changes (cancellation /delay) in the schedule
You have already got information regarding ferry time. I would recommend you not to wait till the last ferry. Weather in island is highly volatile. In our visit, we had to stay in Neil island due to sudden storm