A .NET implementation of USATF's Age Grade metric using Alan Jones' official tables (https://github.com/AlanLyttonJones/Age-Grade-Tables)
A .NET runtime compatible with .NET Standard 2.0
Simply add AgeGradeCalculator
to your project via NuGet
Call the static method with the appropriate parameters to receive a double representing the provided athlete's age grade percent:
var ageGrade1 = AgeGradeCalculator.GetAgeGrade(Category.M, 36, 10_000, TimeSpan.Parse("39:26.5"));
var ageGrade2 = AgeGradeCalculator.GetAgeGrade(Category.F, 29, 1609.3, TimeSpan.Parse("4:30.2"));