How Is Median Calculated?

What is the formula for calculating median?

.