Derving Eq for Button