// https://a2pcalcs.firebaseapp.com/constants-a2p-JSv3.txt var lnCAPEnow = 0.38672; // from www.multpl.com as of 1-8-2017; update quarterly, computed as // LN( c/median - cubicTrend ) where c is 0.0033 exp-avg var sRetCAPE = 1.065563; // stock return 1896-2015, for period of CAPE analysis var lnCAPEmult = -1.491211E-01; // multiplier in exponential function that estimates return var lnCAPEbase = 9.575650E-01; // this base is raised to the power y (years-held ) to estimate returns var lnCAPEconstant = -4.490144E-03; // 9.955199E-01 // intercept in regression that predicts CAPE effect from years held var lnCAPEslope = -1.08972E-01; // Obsolete - slope in regression that predicts CAPE effect from years held var histReturns = [ 1.068115, 1.023368, 1.029916, 1.015005, 1.000374 ]; // retruns on stocks, 10Y T-bonds, 20Y Corps, 2Y T-notes, 3M T-bills // compound returns 1953-2015 from Shiller & FRED; T-Bills from 1934 var inflation = 0.0205173; // compound rate from 1871 to 2015, per Shiller var stockUS = 0.7; // fraction of stocks allocated to US vs. global var bondUS = 0.7; // fraction of bonds allocated to US vs. global var toCBonds = 0.4; // fraction in stocks below which // long-bonds switch from treasuries to corporates var stockLimit = 33; // 100*fraction that stocks must exceed before allocating to global stocks var bondLimit = 33; // 100*fraction that bonds must exceed before allocating to global bonds var medianHome = 190000; var defaultMedExpHi = 2200; // Medigap F deductible in 2017, // www.cms.gov/Medicare/Health-Plans/Medigap/FandJ.html var defaultMedExpLo = 1863; // Reference person over 65, www.bls.gov/cex/tables.htm, healthcare - insurance var defaultLTCareHi = 86400; // Median cost of private room in nursing home, // www.genworth.com/dam/Americas/US/PDFs/Consumer/corporate/130568_040115_gnw.pdf var defaultLTCareLo = 32500; // from Kaiser Family Foundation, Congressional Budget Office, // U.S. Census, and Social Security: // (a) total out-of-pocket costs for LTSS = $58.9B, // (b) of 44.6M people age 65+, 8.3M qualify for Medicaid, // (c) average life-expectancy at 65 = 20 years; // thus, average 1year expense is $58,900M / 36.3M = $1622, // and lifetime total in constant dollars = $32,452 var forecasterSurvey = 0.022; // 2017 1-year outlook from Philly Fed survey of professional forecasters // UPDATE EVERY NOVEMBER var maxCOLA = 0.067; // from analysis of historical data. // highest COLA to prevent depletion in a long retirement. // next 3 from www.socialsecurity.gov/OACT/COLA/piaformula.html for 2016 // UPDATE EVERY DECEMBER var SSbend1 = [ 711, 744, 761, 749, 767, 791, 816, 826, 856 ]; var SSbend2 = [ 4288, 4283, 4586, 4517, 4624, 4768, 4917, 4980, 5157 ]; var SSaimeDivisor = 420; // max 35 years * 12 months var SSmaxTaxEarn = 118500; // max income subject to SS payroll tax // from http://www.socialsecurity.gov/planners/maxtax.htm for 2016