You should allow 2 Days for sightseeing in Hanoi and 2-3 days for taking day trips.