finally solve interval for away time