refactor and test #settlement_at?