import math


def _subject_score(uc_norm: float, aw_norm: float, emc_norm: float, df: float) -> float:
    """
        Main subject detection formula
    """
    return (2.0*uc_norm + aw_norm - emc_norm) / math.sqrt(df + 1.0)