Moving a servo to a position on certain time

Here's my solution:

#include <Servo.h>

Servo servoMotor;
int posF = 90;
int posA = 0;
long tF = 10;
long tA = 0;
int tDelay = 0;

void setup() {
  Serial.begin(9600);
  servoMotor.attach(9);
  tF = tF * 1000;
  tDelay = tF/posF;
  servoMotor.write(posA);
}

void loop() {
  if (posA != posF && tA <= tF) {
    mueveServo();
  }
}

void mueveServo() {
  servoMotor.write(posA);
  posA = posA + 1;
  delay(tDelay);
  tA = tA + tDelay;
  Serial.print(posA); Serial.print("   "); Serial.println(tA);
}