Incorporating factors into formula