Where did you get the Xbox One sold 400k digital copies of games from?
MS PR said they sold 1817k units (909k + 908k) with attach rate of 2.9 for retail and digital.
1817k x 2.9 = ~5.2m
5.2m - 4.8m (retail) = ~0.4m digital
You can find everything in NPD thread.