Breakpoint chlorination is achieved when