Simple mathematics tells us that if the difficulty increases by the same relative amount every time, the total amount of dividend paid out by MINING over its entire lifetime is:
14 * X / D
You are using 14 days here for the length of the difficulty period, and that is not correct when difficulty is increasing. Therefore your formula will overestimate the value of MINING.