calculate using multiple functions