added code to calculate destiny number