impove size limit percentage calculations