Calculate throughput.