d formula