calculate days for interest