To timer added calculate for ratio