Fun little game to figure out.
12 days first try. 9 days second try
Once each worker digs up about 100$, start buying coffee (around once you hit copper)
AFTER buying upgrades at the end of the day, buy as many coffees as you have workers to get an extra "day".
More resource spawns can sidetrack your miners. Also rock and iron end up being the limiting resource for more dig power.