What is the meaning of "Ex-post facto"?

A ) A comfortable thing as fact

B ) With retrospective action or force ✅

C ) A suitable environment to work

D ) An unwelcome guest