def compute_score_for_liver(bilirubin_level: float) -> int:
    """Computes score based on Bilirubin level (unit is mg/dl)."""
    if bilirubin_level >= 12.0:
        return 4
    if bilirubin_level >= 6.0:
        return 3
    if bilirubin_level >= 2.0:
        return 2
    if bilirubin_level >= 1.2:
        return 1
    return 0