Fix purchase date calculation to resolve #58