input: Write a python function to calculate the sum of numbers from 1 to n.
  assert calculate_sum(6) == 21
  assert calculate_sum(10) == 55
  assert calculate_sum(0) == 0
output: def calculate_sum(n):
      return n * (n + 1) // 2