How is 2-year mortality defined?

The observed 2-year mortality rate is the number of patients who died within 2 years divided by the sum of the amount of time each patient is followed for. For patients who survived for the 2 years their follow-up time is 2 years but for a patient who died at 3 months their follow-up time is 3 months.