Refactor `event_source` into `input_cell`.
Change AC calculation formula.