Line item: anchor dates
This document explains what an anchor date is, how it decides where the billing periods of a line item start, how last-day-of-month alignment works, and how a line item can have several anchor dates.Map of concepts
Map of concepts
Without an anchor date, the billing periods of a line item start on the start date of the line item. With an anchor date, they start on the anchor date and on every billing cadence before and after it. With last-day-of-month alignment, an anchor date on the last day of its month starts every billing period on the last day of its month. A line item can have a separate anchor date for each range of dates.
Anchor dates: where billing periods start
An anchor date is the date from which Zenskar counts the billing periods of a line item, within a range of dates. Without an anchor date, the billing periods of a line item start on the start date of the line item. For example, a line item starts on March 10 with monthly billing. Its billing periods run from March 10 to April 9, from April 10 to May 9, and so on. With an anchor date, the billing periods start on the anchor date, and on every billing cadence before and after it. The time between the start of the line item and the first such date is a partial billing period. For example, a line item starts on January 1 with monthly billing. Its anchor date is January 15:
The same applies to other billing cadences. With quarterly billing and an anchor date of February 1, the billing periods are January 1 to January 31 (partial), February 1 to April 30, May 1 to July 31, and so on.
With a monthly or longer billing cadence, each billing period starts on the same day of the month as the anchor date. When a month is shorter, the billing period starts on the last day of that month, and the next one goes back to the day of the anchor date. For example, an anchor date of January 31 gives billing periods that start on February 28, March 31, April 30, and May 31.
Last-day-of-month alignment
Last-day-of-month alignment is an option of an anchor date that starts every billing period on the last day of its month. Last-day-of-month alignment takes effect only when the anchor date is the last day of its month, such as January 31, February 28, or April 30. For example, an anchor date of February 28 gives these billing periods:
Last-day-of-month alignment is available for every anchor date on the 28th or later. For an anchor date that is not the last day of its month, such as January 30, last-day-of-month alignment has no effect.
Several anchor dates
A line item can have several anchor dates, each for its own range of dates. The ranges cannot overlap. They must stay within the line-item duration. Each anchor date falls within its own range. A new anchor date applies from the start of its range. The last billing period of the earlier range ends with that range. For example, a line item runs for the year with monthly billing. The anchor date is January 15 from January to June, and July 1 from July to December:Set anchor dates
This guide shows how to add anchor dates to a line item.