Maximum HSA contribution in a year with partial Medicare coverage

what is the maximum I can contribute in a year when I will have Medicare coverage for 5 months?

Retirement tax questions

on another HSA and Medicare post I found that the max contribution is pro-rated for the number of months I have a HDHP on the first day of those months.  So in my case I can contribute 7/12ths of the annual maximum contribution.