Your formula is wrong, you didn't account for the time spent buying them and NPCing them. You also didn't have any variables for RNG if you get crystals or not.