elevation gain calculation. There are any references about elevation gain calculation in here. you can look below.