(phrasal verb, with a negative connotation) to come up with some ideas / tricks so as to reduce the cost or stop spending more than one wants; to be stingy and scheming selfishly with no consideration for others
Definitions (粵典–words.hk)
語句
為自己着想或打如意算盤 to be cunning or crafty, to act in a tricky way