Retirement tax questions

When you say 25% of W-2 compensation, should it be box 1 (Fed wages) or box 5 (Medicare wages) My box 1 is higher because the corp. paid health insurance for the officer and therefore those payments were added to box 1 (with box 14 detailing the health ins payments). Are those payments qualify for purpose of calculating max SEP as part of compensation ?