Fix date coercing for allowance calculation