apple forumlas