max pain calculation for SLV