line regulation formula

pre: stop the cap 1 hour
next: primary key unique