export const getPastDays = ( dateString ) : number => { const date = new Date ( dateString ) ; const today = new Date ( ) ; const diff = Math . abs ( date . getTime ( ) - today . getTime ( ) ) ; return Math . trunc ( diff / ( 1000 * 60 * 60 * 24 ) ) ; } ;