simulations assume that as assets and liabilities mature , they are replaced or repriced at then current market rates . we also consider forward projections of purchase accounting accretion when forecasting net interest income . the following graph presents the libor/swap yield curves for the base rate scenario and each of the alternate scenarios one year forward . table 52 : alternate interest rate scenarios : one year forward base rates pnc economist market forward slope flattening 2y 3y 5y 10y the fourth quarter 2013 interest sensitivity analyses indicate that our consolidated balance sheet is positioned to benefit from an increase in interest rates and an upward sloping interest rate yield curve . we believe that we have the deposit funding base and balance sheet flexibility to adjust , where appropriate and permissible , to changing interest rates and market conditions . market risk management 2013 customer-related trading risk we engage in fixed income securities , derivatives and foreign exchange transactions to support our customers 2019 investing and hedging activities . these transactions , related hedges and the credit valuation adjustment ( cva ) related to our customer derivatives portfolio are marked-to-market on a daily basis and reported as customer-related trading activities . we do not engage in proprietary trading of these products . we use value-at-risk ( var ) as the primary means to measure and monitor market risk in customer-related trading activities . we calculate a diversified var at a 95% ( 95 % ) confidence interval . var is used to estimate the probability of portfolio losses based on the statistical analysis of historical market risk factors . a diversified var reflects empirical correlations across different asset classes . during 2013 , our 95% ( 95 % ) var ranged between $ 1.7 million and $ 5.5 million , averaging $ 3.5 million . during 2012 , our 95% ( 95 % ) var ranged between $ 1.1 million and $ 5.3 million , averaging $ 3.2 million . to help ensure the integrity of the models used to calculate var for each portfolio and enterprise-wide , we use a process known as backtesting . the backtesting process consists of comparing actual observations of gains or losses against the var levels that were calculated at the close of the prior day . this assumes that market exposures remain constant throughout the day and that recent historical market variability is a good predictor of future variability . our customer-related trading activity includes customer revenue and intraday hedging which helps to reduce losses , and may reduce the number of instances of actual losses exceeding the prior day var measure . there was one such instance during 2013 under our diversified var measure where actual losses exceeded the prior day var measure . in comparison , there were two such instances during 2012 . we use a 500 day look back period for backtesting and include customer-related revenue . the following graph shows a comparison of enterprise-wide gains and losses against prior day diversified var for the period indicated . table 53 : enterprise-wide gains/losses versus value-at- 12/31/12 1/31/13 2/28/13 3/31/13 4/30/13 5/31/13 6/30/13 7/31/13 8/31/13 9/30/13 10/31/13 11/30/13 12/31/13 total customer-related trading revenue was as follows : table 54 : customer-related trading revenue year ended december 31 in millions 2013 2012 .

Table:
year ended december 31in millions | 2013 | 2012
net interest income | $ 31 | $ 38
noninterest income | 286 | 272
total customer-related trading revenue | $ 317 | $ 310
securities underwriting and trading ( a ) | $ 78 | $ 100
foreign exchange | 94 | 92
financial derivatives and other | 145 | 118
total customer-related trading revenue | $ 317 | $ 310
( a ) includes changes in fair value for certain loans accounted for at fair value .
customer-related trading revenues for 2013 increased $ 7 million compared with 2012 .
the increase primarily resulted from the impact of higher market interest rates on credit valuations for customer-related derivatives activities and improved debt underwriting results which were partially offset by reduced client sales revenue .
the pnc financial services group , inc .
2013 form 10-k 93 .

Question: for 2013 and 2012 , what was total noninterest income in millions?
Answer: 558
Calculation: add(286, 272)