You can use the DATEDIF function
https://www.wps.cn/learning/course/detail/id/154.html?chan=pc_kdocs_function