Skip to main content
Solved

Calculate the years worked based on career start date

  • Oct 17, 2019 8:50 PM UTC
  • 5 replies
  • 96 views

I’m looking to estimate a person’s retirement date based on their career start date, this would be using the assumption that they would work 35 years following their first job.

Best answer by Lisa_Gervais

Or wrap the YEAR function around the rest:

YEAR(DATEADD(Date, 35, "years"))

Hi Justin that worked thanks!

View original
This topic has been closed for replies.

5 replies

Justin_Barrett
Forum|alt.badge.img+21

This should do it (replace Date with the name of the field that has the person’s career start date):

DATEADD(Date, 35, "years")

  • Author
  • Inspiring
  • Oct 18, 2019 3:05 PM UTC

This should do it (replace Date with the name of the field that has the person’s career start date):

DATEADD(Date, 35, "years")

Thanks Justin! is it possible to just get the year returned rather than the day/month and time stamp?


Forum|alt.badge.img+18

Thanks Justin! is it possible to just get the year returned rather than the day/month and time stamp?


DATETIME_FORMAT(
   DATEADD(Date, 35, "years"),
   YYYY
)

Justin_Barrett
Forum|alt.badge.img+21

Or wrap the YEAR function around the rest:

YEAR(DATEADD(Date, 35, "years"))

  • Author
  • Inspiring
  • Answer
  • Oct 18, 2019 3:59 PM UTC

Or wrap the YEAR function around the rest:

YEAR(DATEADD(Date, 35, "years"))

Hi Justin that worked thanks!