Module 627380

404 characters · in 4598f2dd7669d7b1.js
Dependencies
Required by (3)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{t:()=>c});var i=n(64700),r=n(989349),l=n.n(r),a=n(655752),s=n(878784);function o(e,t){return l()(e).add(t,"months").add(1,"day")}function c(){let e=(0,a.P)(),t=(0,s.Xb)();return(0,i.useMemo)(()=>{if(null==e||null==t)return null;let n=e.tenureReqNumMonths,i=o(t,n);return{days:Math.max(0,o(t,n).diff(l()(),"days")),months:Math.max(0,Math.round(i.diff(l()(),"months",!0)))}},[e,t])}}