HSA question

If you worked with a employer that allowed you to contribute to the HSA at the beginning of the year however you switched employers in the middle of the year that does not have a high deductible plan, what is the maximum HSA contribution? (assuming your switched employers mid-year)