Measure reading levels with readability indexes

How to calculate readability with the Flesch Reading Ease, Flesch-Kincaid and Gunning Fog tests