create getKeyStatics function for fetching data from api. Add generateFormula function for generating formula for each key statics.