I like Delhi and visit often but the polution is making it a bit unbearbale. How long to stay would depend on the itme of year you plan to visit. Polution and traffic in KTM are also terrible - so best to base yourself in Patan IMO - which has many of the best sites in any case.