```python
def rate_cap(price: int, rate: int, most: int) -> int:
    if price < 0 or rate < 0 or most <= 0:
        raise ValueError("Invalid input values")
    
    increase = min((price * rate) // 100, most)
    
    return price + increase if increase > 0 else price
```