How is fat Tuesday decided?

It is 47 days before Easter