Analytical and numerical estimates of nonlocal effects at low atomic scales: periodic structures, Landau levels, and quantum box