solve insert interval