time to invest in midcap funds