Starting from January 1st, 2019, if you have stayed within the US for more than 183 days in the year, regardless whether you are on F or H-visa, you are considered passing the SPT Substantial Presence Test.
Your five years exempt period ends December 31, 2018. ( 2014-2018)