thanks for the quick reply, I see what the calc is doing now. it has a small range for what it estimates the diffulty would currently be if it were to adjust in real time. I'm a lil lost on your math though, how did you come to the 268?

a - (b % c)

a = amount of blocks in a difficulty period

b = current block

c = amount of blocks in a difficulty period

% = modulus (remainder of a division)

You start by calculating b % c, which is 1 748. This is the amount of blocks currently found in the current difficulty period.

Then you calculate a - 1 748, which equals 268.