calculate_from_custom_date