fix calculation pattern in question resource