Functions to calculate the visible width / height at a given z-depth from a perspective camera

I need these function,thank you