Added calc final price function