fixed unreg date calculation