$stock) { throw new InvalidArgumentException("Invalid stock counts"); } return $stock - $borrowed; } echo remaining(12, 5), "\n";