General question on the 18 month window

Can someone please confirm whether the 18 month window is based on the day I take (and hopefully pass my first exam) or is it based on that testing window? For example, if you were to take the exam in the first month of a window, the 18th month will always be a March, June, Sep, or Dec month, so you effectively lose 1 month. However, if you take the exam on the second month of a window, your 18th month will never fall on a month in which you can't take the exam. Thanks in advance for your comments!