Using this calculator is easy.
Just enter the distance, the climb and descent, choose the track grade; then click Calculate.