The biodiversity algorithm greatly simplifies the calculation of biodiversity losses and gains.