How is self employed retirement maximum allowable contribution calculated?

I am self-employed with a business partnership. My husband is a W-2 employee but also participates in our business.  I am eligible for a SEP and contributed for 2016 but would like to contribute more.  How is the maximum allowed contribution to qualified plans calculated? Does this amount also include any amount my husband contributed to his other company's 401k?