How is schedule 1, line 17 calculated? Is there a way to check it?

This is the self employed health insurance deduction.  It has to be related to the medical expense worksheet line 2b, but I do not understand how Turbo Tax generated the numbers.