Correct it is based solely on date the like was cast, not the date of the post it was cast on.
So you can like or get likes on posts from 3 years ago, and they count toward the last 100 days. The only thing that matters is the date the like was created.