Xbox Live subscriptions are based on a 24-hour cycle from activation time, not calendar days.
If you activate a 1-month Xbox Live Gold subscription at 2:00 PM on February 10, it expires at 2:00 PM on March 10—not at midnight.
This system applies to Xbox Live Gold, Xbox Game Pass Core, and Game Pass Ultimate subscriptions.