If both the 2010 and 2045 are counted, (ie. "from the start of
2010 to the end of 2045") then that is a timespan of 36 years.
If it's from the the same date in each year, (eg. "From July
1st, 2010 to July 1st, 2045") then the timespan would be 35
years.