I finally cracked the formula