the qualified dividend and capital gain worksheet is automatically calculated from amounts entered on other input forms such as capital gains (8949 input) and dividends (1099-DIV).
it's the 8949 form that you fill out to enter capital gains. the 1099-DIV is filled out to enter your dividend income