FLOPs for custom layers

Hi,
I have a doubt regarding FLOPS. How does one calculate FLOPS for a custom layer?
Lets say I want to come up with a new activation function, how do I calculate its FLOPS for the model.