def METHOD_NAME(self, value: str, unit: str) -> float:
    rate = 0
    if unit == "min":
        rate = 60000
    elif unit == "s":
        rate = 1000
    elif unit == "ms":
        rate = 1
    else:
        raise LisaException(f"please handle unit {unit} properly")
    if value is None:
        value = 0
    return float(value) * rate