working function to calculate timestamp as required by ipsum