frame revenue calculation