Mining difficulty adjustments are made by comparing the standard time it should take to find 2,016 blocks of transactions on the Bitcoin network to the time it took to find the last 2,016 blocks. Keep in mind that the accepted block time is 10 minutes. Therefore, the expected time for mining 2016 blocks is 20,160 minutes (that is, 2016 X 10 minutes).
Source link