Fixed formula to use configurable constants

soft limit more useful now