Two-band calculations on the upper critical field of superconductor NbSe2