Script deriving the scaling factors and 24-hour estimates