Need help with object Rotation Script

Hi there, this is my first time on this forum and I require some guidance on developing a script for Friday.

The script which I'm developing is a script which makes a selected object rotate 360 degrees. the rollout UI will display options such as how fast the object spins and how long it spins for.

any help will be greatly appreciated

Many Thanks