Called the calcArea function.