How is a Mill Rate calculated?

The Mill Rate is ((Town Budget - State Funds) / (Total Grand List Value - Exemptions)) * 1000