Dynamic calculation of custom download size