How is the patent time calculated? Day, week, month

Invention patents are valid for 20 years, and utility model patents and design patents are valid for 10 years, calculated from the date of application. For example, the design patent application date is December 29, 2015. If the design patent application is approved, it will expire on December 28, 2025.